Regex question
James Blewitt
jim at jblewitt.com
Wed Mar 28 02:40:21 PDT 2012
I'm having a problem with regexes.
The following code gives a compilation error. If I comment out
the regex outside of main and comment in the regex inside of main
then it does compile.
I'm using DMD v2.058
Any ideas what is going on?
------
import std.regex;
Regex!(char) testRegex = regex("\\b(A(Z)?|B(Z)?|C(Z)?)\\b", "i");
void main() {
// Regex!(char) testRegex = regex("\\b(A(Z)?|B(Z)?|C(Z)?)\\b",
"i");
}
More information about the Digitalmars-d-learn
mailing list