[Issue 17516] New: std.regex doesn't recognize \e (for ANSI escape character), unlike boost.regex
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jun 16 23:01:00 PDT 2017
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 at puremagic.com
Reporter: timothee.cour2 at 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
--
More information about the Digitalmars-d-bugs
mailing list