https://issues.dlang.org/show_bug.cgi?id=17516

          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: [email protected]
          Reporter: [email protected]

http://www.boost.org/doc/libs/1_33_1/libs/regex/doc/format_boost_syntax.html

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

\e is not recognize (and not in docs in
https://dlang.org/phobos/std_regex.html#replaceFirst)

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

There are workarounds, but they're cumbersome

--

Reply via email to