diff --git a/README.md b/README.md index 561a241..4cadf9b 100644 --- a/README.md +++ b/README.md @@ -391,8 +391,7 @@ import re '\w' == '[a-zA-Z0-9_]' # Also [ª²³…]. Matches an alphanumeric or _. '\s' == '[ \t\n\r\f\v]' # Also [\x1c-\x1f…]. Matches a whitespace. ``` -* **By default, decimal characters, alphanumerics and whitespaces from all alphabets are matched unless `'flags=re.ASCII'` argument is used.** -* **It restricts special sequence matches to `'[\x00-\x7f]'` (the first 128 characters) and also prevents `'\s'` from accepting `'[\x1c-\x1f]'` (file, table, row, and field separators).** +* **By default, decimal characters and alphanumerics from all alphabets are matched unless `'flags=re.ASCII'` is used. It restricts special sequence matches to the first 128 Unicode characters and also prevents `'\s'` from accepting `'\x1c'`, `'\x1d'`, `'\x1e'` and `'\x1f'` (the so-called information separators that divide text into files, tables, rows and fields).** * **Use a capital letter for negation (all non-ASCII characters will be matched when used in combination with ASCII flag).** diff --git a/index.html b/index.html index d086a81..efbc68d 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@
'flags=re.ASCII'
argument is used.'[\x00-\x7f]'
(the first 128 characters) and also prevents '\s'
from accepting '[\x1c-\x1f]'
(file, table, row, and field separators).'flags=re.ASCII'
is used. It restricts special sequence matches to the first 128 Unicode characters and also prevents '\s'
from accepting '\x1c'
, '\x1d'
, '\x1e'
and '\x1f'
(the so-called information separators that divide text into files, tables, rows and fields).<str> = f'{<el_1>}, {<el_2>}' # Curly brackets can also contain expressions.
@@ -2924,7 +2923,7 @@ $ deactivate # Deactivates the active