Write a regular expression and test it against your string โ matches highlighted live.
| Pattern | Meaning | Pattern | Meaning |
|---|---|---|---|
| . | Any character | \d | Digit [0-9] |
| ^ | Start of string | \w | Word char [a-zA-Z0-9_] |
| $ | End of string | \s | Whitespace |
| * | 0 or more | [abc] | Character class |
| + | 1 or more | [^abc] | Negated class |
| ? | 0 or 1 | (abc) | Capture group |
| {n,m} | n to m times | (?:abc) | Non-capture group |
| | | Alternation | (?=abc) | Lookahead |