www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12367] New: std.regex: Recognize (?# ... ) comment syntax

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12367


           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: thecybershadow gmail.com



02:11:29 EET ---
A comment syntax would be handy for particularly long expressions.

This syntax seems to be already supported by several existing engines:
http://www.regular-expressions.info/freespacing.html#parenscomment

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 14 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12367


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc




 A comment syntax would be handy for particularly long expressions.
 
 This syntax seems to be already supported by several existing engines:
 http://www.regular-expressions.info/freespacing.html#parenscomment
Python verbose regex syntax, because it allows me to lay down regexes as little http://docs.python.org/2/library/re.html http://www.diveintopython.net/regular_expressions/verbose.html
 pattern = """
""" -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 14 2014