I found this: http://code.activestate.com/recipes/475109/
But it is incorrect in some cases, such as: * "foo \" bar"* / (incorrectly matches "foo \")/ * '''* /(incorrectly matches the second two single quotes)/ *" foo bar "* / (incorrectly matches quote containing newline/)Anyone know a regular expression that correctly matches python string literals?
Thanks in advance, Ken
-- http://mail.python.org/mailman/listinfo/python-list