Issues with std.regex

jerro a at a.com
Sat Feb 16 13:58:23 PST 2013


> Pattern with error: `[ 0-9a-zA-Z.*=+-;()"'\[\]<>,{}^#/\]` 
> <--HERE-- ``

The problem here is that you have \ right before the ] at the end 
of the string. Because it is preceeded by \, ] is interpretted as 
a character you are matching on, not as a closing bracket for the 
initial [. If you want to match \ you need this:

[ 0-9a-zA-Z.*=+-;()"'\[\]<>,{}^#/\\]


More information about the Digitalmars-d-learn mailing list