|Any of the following characters: |
|Any character from |
|Any digit from |
Some groups/ranges of characters are so often used, they have special abbreviations:
|Alphanumeric characters plus the underscore (also referred to as "word characters")|
|Non-word characters (same as |
|Digits (wider than |
|Non-digits (shorter than |
|Whitespace characters (spaces, tabs, etc...) Note: may vary depending on your engine/context|
A caret (^) after the opening square bracket works as a negation of the characters that follow it. This will match all characters that are not in the character class.
Negated character classes also match line break characters, therefore if these are not to be matched, the specific line break characters must be added to the class (\r and/or \n).
|Any character other than |
|Any character, except digits|