Not logged in
Log in now
Create an account
Subscribe to LWN
Recent Features
Pencil, Pencil, and Pencil
Dividing the Linux desktop
LWN.net Weekly Edition for June 13, 2013
A report from pgCon 2013
Little things that matter in language design
Minor nit: You can easily parse quoted strings using something like:
"([^"]|\\.)*"
KS2011: Structured error logging
Posted Oct 25, 2011 8:21 UTC (Tue) by l0b0 (subscriber, #80670) [Link]
echo '"foo \"bar\" baz"' | grep -E '"([^"]|\\.)*"' # Succeeds echo '"foo \"bar\\" baz"' | grep -E '"([^"]|\\.)*"' # Ouch, that's a literal backslash, not an escaped quote!
"([^"]|(?<=\\(\\\\)*)")*"
grep -P
Posted Oct 25, 2011 8:53 UTC (Tue) by iq-0 (subscriber, #36655) [Link]
Posted Oct 25, 2011 9:35 UTC (Tue) by liljencrantz (guest, #28458) [Link]
Posted Oct 25, 2011 10:02 UTC (Tue) by nix (subscriber, #2304) [Link]
Copyright © 2013, Eklektix, Inc. Comments and public postings are copyrighted by their creators. Linux is a registered trademark of Linus Torvalds