
5 Jan
2006
5 Jan
'06
11:28 p.m.
Bjørn Roald wrote:
When we discuss the issue of string literals, do you have any suggestion of how to best match string literals static regexp
<untested> sregex quoted = '"' // open quote >> keep( // turn off backtracking *( // zero or more ... ~(set= '\\', '"') // chars that are not quote or escape | // or '\\' >> _ // an escaped char ) ) >> '"'; // close quote </untested> -- Eric Niebler Boost Consulting www.boost-consulting.com