www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17516] New: std.regex doesn't recognize \e (for ANSI escape


          Issue ID: 17516
           Summary: std.regex doesn't recognize \e (for ANSI escape
                    character), unlike boost.regex
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: timothee.cour2 gmail.com


\e    Outputs the ANSI escape character (code point 27).

\e is not recognize (and not in docs in

\e is particularly useful to handle ansi termnial escape codes (eg color codes)
in log files

There are workarounds, but they're cumbersome

Jun 16 2017