Re: using std.regex with (A|B) patterns.

2012-11-19 Thread Dmitry Olshansky
11/19/2012 11:55 AM, Aquiles пишет: Hello, While instantiating a floating point regex using ctRegex!"\\b[-+]?([0-9]*\\.[0-9]+|[0-9]+)\\B", I got a compiler error (see below.) The offending character seems to be '|' and when escaped it compiles. I can reproduce it with a simpler regex: assert

using std.regex with (A|B) patterns.

2012-11-19 Thread Aquiles
Hello, While instantiating a floating point regex using ctRegex!"\\b[-+]?([0-9]*\\.[0-9]+|[0-9]+)\\B", I got a compiler error (see below.) The offending character seems to be '|' and when escaped it compiles. I can reproduce it with a simpler regex: assert ( match("A", ctRegex!"A|B") ); as