Last active
June 1, 2022 16:44
-
-
Save ishritam/75d5020059b0f3f6e9542a1c274f7aaa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Character | Description | Example Pattern Code | Example Match | |
---|---|---|---|---|
\d | A digit | file_\d\d | file_25 | |
\D | A non digit | \D\D\D | ABC | |
\w | Alphanumeric | \w-\w\w\w | A-b_1 | |
\W | Non-alphanumeric | \W\W\W\W | !*+) | |
\s | White space | a\sb\sc | a b c | |
\S | Non-whitespace | \S\S\S\S | This |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment