File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
docs/types/strings/built-in-modules Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Regular expressions
55
66.. seealso ::
77 * `www.regular-expressions.info <https://www.regular-expressions.info/ >`_
8+ * `regex101 <https://regex101.com >`_
89 * `AutoRegex <https://www.autoregex.xyz >`_
910
1011``[] ``
@@ -14,7 +15,6 @@ Square brackets define a list or range of characters to search for:
1415
1516``[abc] ``
1617 corresponds to a, b or c
17-
1818``[a-z] ``
1919 corresponds to any lower case letter
2020``[A-Za-z] ``
@@ -65,11 +65,25 @@ Escape characters and literals
6565 is used to search for a special character, for example to find ``.org `` you
6666 have to use the regular expression ``\.org `` because ``. `` is the special
6767 character that matches every character.
68+ ``[\b] ``
69+ Backspace character
6870``\d ``
6971 matches every single digit.
72+ ``\D ``
73+ matches any non-digit.
7074``\w ``
7175 matches any part of a word character and is equivalent to ``[A-Za-z0-9] ``.
76+ ``\W ``
77+ matches any non-word character.
7278``\s ``
7379 matches any space, tab or newline.
80+ ``\S ``
81+ matches any non-whitespace character.
82+ ``\A ``
83+ Start of a string.
84+ ``\Z ``
85+ End of a string.
7486``\b ``
7587 matches a pattern on a word boundary.
88+ ``\B ``
89+ matches any non-word boundary.
You can’t perform that action at this time.
0 commit comments