gh-133286: add explanation about seq for pathlib Pattern Language (#133340)

This commit is contained in:
alexey semenyuk 2025-05-16 23:42:06 +05:00 committed by GitHub
parent b5febf73b9
commit ac8df4b589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1781,9 +1781,12 @@ The following wildcards are supported in patterns for
``?``
Matches one non-separator character.
``[seq]``
Matches one character in *seq*.
Matches one character in *seq*, where *seq* is a sequence of characters.
Range expressions are supported; for example, ``[a-z]`` matches any lowercase ASCII letter.
Multiple ranges can be combined: ``[a-zA-Z0-9_]`` matches any ASCII letter, digit, or underscore.
``[!seq]``
Matches one character not in *seq*.
Matches one character not in *seq*, where *seq* follows the same rules as above.
For a literal match, wrap the meta-characters in brackets.
For example, ``"[?]"`` matches the character ``"?"``.