digitalmars.D.bugs - [Issue 17516] New: std.regex doesn't recognize \e (for ANSI escape
- via Digitalmars-d-bugs (22/22) Jun 16 2017 https://issues.dlang.org/show_bug.cgi?id=17516
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: nobody puremagic.com Reporter: timothee.cour2 gmail.com 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 --
Jun 16 2017