Message185474
>>> import re
>>> p = re.compile(r'^(?:\\"|.|)*?"', re.S|re.M)
>>> s = 'sub foo {\n\tprint "\n\t\tbar\n\t\t";\n}\n'
>>> m = p.findall(s)
Python doesn't return.
Dropping the last "|" in the pattern fixes this.
Regex engines in Perl, PHP, JS, and Ruby all handle
this regex. Ref Komodo bug http://bugs.activestate.com/show_bug.cgi?id=98268 |
|
Date |
User |
Action |
Args |
2013-03-28 23:50:02 | ericp | set | recipients:
+ ericp |
2013-03-28 23:50:02 | ericp | set | messageid: <1364514602.25.0.0249156897876.issue17568@psf.upfronthosting.co.za> |
2013-03-28 23:50:02 | ericp | link | issue17568 messages |
2013-03-28 23:50:01 | ericp | create | |
|