Write a regex pattern, paste your test string, and see matches highlighted in real time. Capture groups shown below.
. | Any character except newline | ||
|---|---|---|---|
\d | Digit [0-9] | \D | Non-digit |
\w | Word char [a-zA-Z0-9_] | \W | Non-word |
\s | Whitespace | \S | Non-whitespace |
+ | One or more | * | Zero or more |
? | Zero or one | {n,m} | n to m times |
^ | Start of line | $ | End of line |
( ) | Capture group | (?: ) | Non-capturing group |
| | Alternation (OR) | [abc] | Character class |
(?= ) | Lookahead | (?<= ) | Lookbehind |