You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ascii POSIX character class should match only code points in the range 0..127 as documented and as consistent with other PCRE-based implementations. In these implementations, [[:ascii:]] is equivalent to \p{block=basic_latin} which is the range 0..127.
Description
According to the docs for the re module, the POSIX class
ascii
should matchCharacter codes 0-127
.Examples show it matches characters
0..255
. This is different behaviour to other PCRE-based regex implementations.To Reproduce
Expected behaviour
The
ascii
POSIX character class should match only code points in the range0..127
as documented and as consistent with other PCRE-based implementations. In these implementations,[[:ascii:]]
is equivalent to\p{block=basic_latin}
which is the range0..127
.Environment
Reproduced on:
The text was updated successfully, but these errors were encountered: