firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.26k stars 199 forks source link

Double escapes #2067

Closed J-295 closed 1 year ago

J-295 commented 1 year ago

Feature

When regular expressions are stored in a config file, they will sometimes need to be double-escaped.

Example: \\d+ to match a string of digits.

My suggestion is that a toggle is added for double escapes, so that when enabled, the example above would act like \d+.

firasdib commented 1 year ago

The website always works in raw string mode for all flavors to avoid this problem. If you want to get a pre-formatted string with double escapes, please consult the code generator instead.