8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
seq
1 parent b5febf7 commit ac8df4bCopy full SHA for ac8df4b
Doc/library/pathlib.rst
@@ -1781,9 +1781,12 @@ The following wildcards are supported in patterns for
1781
``?``
1782
Matches one non-separator character.
1783
``[seq]``
1784
- Matches one character in *seq*.
+ Matches one character in *seq*, where *seq* is a sequence of characters.
1785
+ Range expressions are supported; for example, ``[a-z]`` matches any lowercase ASCII letter.
1786
+ Multiple ranges can be combined: ``[a-zA-Z0-9_]`` matches any ASCII letter, digit, or underscore.
1787
+
1788
``[!seq]``
- Matches one character not in *seq*.
1789
+ Matches one character not in *seq*, where *seq* follows the same rules as above.
1790
1791
For a literal match, wrap the meta-characters in brackets.
1792
For example, ``"[?]"`` matches the character ``"?"``.
0 commit comments