Thread overview
[Issue 5673] New: Add lookahead and forgetful matching support std.regex
Mar 01, 2011
Dmitry Olshansky
Mar 01, 2011
Dmitry Olshansky
Jun 06, 2011
Dmitry Olshansky
Jun 06, 2011
Dmitry Olshansky
Jun 06, 2011
Dmitry Olshansky
Jun 06, 2011
Dmitry Olshansky
March 01, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5673

           Summary: Add lookahead and forgetful matching support std.regex
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: dmitry.olsh@gmail.com


--- Comment #0 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2011-03-01 07:46:03 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 01, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5673



--- Comment #1 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2011-03-01 07:49:21 PST ---
Created an attachment (id=925)
Patch for regex.d, all but lookbehind

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 06, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5673


Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alan@akbkhome.com


--- Comment #2 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2011-06-06 02:17:15 PDT ---
*** Issue 1394 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 06, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5673



--- Comment #3 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2011-06-06 02:27:19 PDT ---
*** Issue 5169 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 06, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5673



--- Comment #4 from Dmitry Olshansky <dmitry.olsh@gmail.com> 2011-06-06 08:29:32 PDT ---
Fixed in version 2.053 https://github.com/D-Programming-Language/phobos/commit/ee612d047c8c8a840fb601180306f65ec28c7853

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 06, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5673


Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------