[Issue 5652] New: Add \p and \P unicode properties to std.regex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 25 08:28:02 PST 2011


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

           Summary: Add \p and \P unicode properties to std.regex
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: jlquinn at optonline.net


--- Comment #0 from Jerry Quinn <jlquinn at optonline.net> 2011-02-25 08:25:16 PST ---
It's nice to be able to point to a standard for regexes, but Unicode properties
are an invaluable part of writing regexes when dealing with non-ascii text.

They are supported by Java, ICU, Perl, and PCRE.  If need be, they could be
enabled by a flag.

I'd definitely recommend providing \p{} and \P{} constructs covering the full
unicode standard, but would also highly suggest allowing \pX for single-char
properties too.

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