Summary: Lazy quantifiers fail with ctRegex
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Jameson <> 2012-02-23 09:30:07 PST ---

ctRegex fails to compile some regular expressions that regex does.

Steps to reproduce:

The following regular expressions fail with ctRegex, put work with regex
compiled at runtime:


Actual Results:

I get the following error:

/usr/include/d/dmd/phobos/std/regex.d(6486): found 'else' instead of statement

Expected results:

I expected ctRegex to behave the same as regex, and compile the same set of
regular expressions.


DMD v2.058

Additional information:

The following regular expressions work with both:


It seems to be a problem with having a lazy quantifier followed by the ?.

I am building a regex to parse URIs:


This works fine with the regex function, but breaks when I use ctRegex.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to