← Back to index
|
Original Bugzilla link
Bug 17516 – std.regex doesn't recognize \e (for ANSI escape character), unlike boost.regex
Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-17T06:01:00Z
Last change time
2024-12-01T16:30:23Z
Assigned to
Dmitry Olshansky
Creator
Timothee Cour
Moved to GitHub: phobos#10252 →
Comments
Comment #0
by timothee.cour2 — 2017-06-17T06:01:00Z
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
Comment #1
by ag0aep6g — 2017-06-17T12:36:28Z
Changing to 'enhancement' as compatibility with boost.regex is not a stated goal for std.regex.
Comment #2
by dmitry.olsh — 2017-08-24T10:26:11Z
Should be trivial to just use \x27 isn't it?
Comment #3
by robert.schadek — 2024-12-01T16:30:23Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/phobos/issues/10252
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB