[Issue 9211] New: regex lookahead, (?=(\d\d\d)+\b) failed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 26 14:13:36 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9211

           Summary: regex lookahead, (?=(\d\d\d)+\b) failed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: p.summerland at gmail.com


--- Comment #0 from Peter Summerland <p.summerland at gmail.com> 2012-12-26 14:13:35 PST ---
The following failed for more than six digits:

auto rx_bf_ddd = regex( r"(?<=\d)(?=(\d\d\d)+\b)", "g");
writefln( "rx_bf_ddd:  %s ", replace(digits, rx_bf_ddd, ",") );

Using (\d{3}) i/o (\d\d\d) worked.

DMD64 D Compiler v2.060

-- 
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