Issues with std.regex
jerro
a at a.com
Sat Feb 16 13:48:36 PST 2013
> std.regex.RegexException@/usr/include/dmd/phobos/std/regex.d(1942):
> wrong CodepointSet
> Pattern with error: `[ 0-9a-zA-Z.*=+-;()"'[]` <--HERE--
> `<>,{}^#/\\]`
>
> (Entire error here: http://pastebin.com/Su9XzbXW)
You need to put \ in front of [ or ] if you want to match those
two characters. The relevant part of std.regex documentation:
\c where c is one of [|*+?() Matches the character c itself.
More information about the Digitalmars-d-learn
mailing list