Bug 5673 – Add lookahead and forgetful matching support std.regex

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-03-01T07:46:00Z
Last change time
2011-06-06T08:29:49Z
Assigned to
nobody
Creator
dmitry.olsh

Attachments

IDFilenameSummaryContent-TypeSize
925regex.diffPatch for regex.d, all but lookbehindtext/plain5516

Comments

Comment #0 by dmitry.olsh — 2011-03-01T07:46:03Z
Like I said in the http://d.puremagic.com/issues/show_bug.cgi?id=5169 std.regex lacks some useful regex patterns that considered as required in ECMA262 standard. Most needed, it seems, are lookahead and forgetful matching (?:...). Required by email validation http://www.dominicsayers.com/isemail/ For a start, see attached patch with lookahead and forgetful matching in std.regex implemented.
Comment #1 by dmitry.olsh — 2011-03-01T07:49:21Z
Created attachment 925 Patch for regex.d, all but lookbehind
Comment #2 by dmitry.olsh — 2011-06-06T02:17:15Z
*** Issue 1394 has been marked as a duplicate of this issue. ***
Comment #3 by dmitry.olsh — 2011-06-06T02:27:19Z
*** Issue 5169 has been marked as a duplicate of this issue. ***
Comment #4 by dmitry.olsh — 2011-06-06T08:29:32Z