[Issue 9979] Regex bug
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 22 19:15:39 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9979
--- Comment #1 from Diggory <diggsey at googlemail.com> 2013-04-22 19:15:38 PDT ---
I've narrowed it down to what seems to be an off-by-one error in the regex
engine when a word break is encountered while the current string position is at
the end of the string.
This much simpler regex demonstrates the problem:
auto r = regex(r"A\b", "g");
string s = "A";
auto m = s.match(r);
writeln(m);
Clearly this should match "A" but it instead matches an empty string before A.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list