On 21.08.2011 11:20, Rainer Schuetze wrote:
On 20.08.2011 11:40, Dmitry Olshansky wrote:
On 20.08.2011 12:39, Rainer Schuetze wrote:
Hi,

I recently updated to the latest revision from github and tried to compile my main project visuald with it. Here are some complications that have hit me:

[...]
2. std.regexp is deprecated now, which is good, because there is no reason to have two different implementations of regular expressions. Unfortunately, std.regex seems to have some problems with rather simple regular expressions like r"^(.*)\(([0-9]+)\):(.*)$" that is supposed to match error messages like "file.d(37): huhu". std.regexp worked for this expression.

That's most likely my fault, since there is a special casing for .* in std.regex which very well might be at fault here. Honestly, at a certain point I just gave up on trying to fix current std.regex, apparently a bit early. A quick test on this would be r"^([\x00-\x80]*)\(([0-9]+)\):([\x00-\x80]*)$".


Thanks for confirming. Your workaround works for this regular expression. But I also have a user input field that can be a regular expression, where ".*" would be nice to work out of the box. I could replace it with the range as a workaround, though.

Since it's the second time this special casing is failing I think it would better to get rid of it entirely, the release is just around the corner and surely it shouldn't the review of gsoc project. I'll do a pull request then.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to