http://d.puremagic.com/issues/show_bug.cgi?id=2108
Jesse Phillips <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m OS/Version|Linux |All --- Comment #2 from Jesse Phillips <[email protected]> 2010-05-06 14:30:40 PDT --- This is also an issue in Windows with std.regex using DMD 2.043 But I would like to add that it is always greedy prior to text. The first assert will fail since it was not non-greedy and the second is what it should be. import std.regex; void main() { assert(match("Hello there you silly person you.", regex(r"\b.+? you .+\w")).hit != "Hello there you silly"); assert(match("Hello there you silly person you.", regex(r"\b.+? you .+\w")).hit == "there you silly person"); } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
