More complete string matching

22 views
Skip to first unread message

Jason Van Pelt

unread,
Apr 6, 2013, 10:49:40 PM4/6/13
to treet...@googlegroups.com
In the documentation it shows a string match example as: '"' ('\"' / !'"' .)* '"'

This will mistakenly match doubly-escaped double-quotes, such as " \\" "

The following will account for this and require an odd number of back-slashes immediately before a double-quote:

'"' ("\\\\" / '\"' / (!'"' .))* '"'


Reply all
Reply to author
Forward
0 new messages