Regex101 icon indicating copy to clipboard operation
Regex101 copied to clipboard

Support for Python 3.8 regex changes: `\N{name}` escape

Open jamesohortle opened this issue 5 years ago • 1 comments

Feature

Python 3.8 introduces the \N{name} escape sequence. See here (scroll to the bottom of the section or CRTL+F and search for Changed in version 3.8).

It allows expressions like r"\N{KATAKANA LETTER A}" which will match "ア" and improves readability; the following strings are equivalent: r" " == r"\u3000" == r"\N{IDEOGRAPHIC SPACE}".

It would be nice to have this feature available on the website.

jamesohortle avatar Oct 17 '19 00:10 jamesohortle

Python on the website needs an update as a whole because it was designed for old python, I believe this is being worked on, @firasdib ?

Ouims avatar Jan 03 '21 15:01 Ouims