Re: Empty subexpressions captures in std.regex

2010-07-12 Thread PC
Sorry about the lack of clarity in the last post. I actually commented out the call to the Regex.optimize in Regex.compile. auto r1 = regex( "(a*)b" ); r1.printProgram(); Prints out: printProgram() 0:REtestbit 98, 13 18:REparen len=15 n=0, pc=>42 27:REnm len=2, n=0, m=42

Re: Empty subexpressions captures in std.regex

2010-07-11 Thread Andrei Alexandrescu
Hi PC, Thanks for your kind words. Regarding regex, we need to get a report into bugzilla so we keep track of the problem. When you say "disable the call to optimize" are you referring to the -O compiler flag? In that case it's a compiler problem (otherwise it might be a library issue). Coul

Empty subexpressions captures in std.regex

2010-07-11 Thread PC
Hi, I've been lurking in this group for a few months, have read through TDPL (which is great Andrei) and have started using D for some small programs. So far it's been a joy to use (you may have a C++ convert on your hands) and with the convenience of rdmd, I've been using it where I'd normally use