RegEx Tester
BackLoad Presets
Regex & Flags
//gim
Test String
Chars: 157
Matches Highlighted
Send emails to support@example.com, feedback@retro-tools.org, or test.user+label@domain.co.uk.
Invalid addresses like @gmail.com or user@com shouldn't match.
Matches Found: 3
Match Details
| # | Match Value | Index [Range] | Groups |
|---|---|---|---|
| 1 | support@example.com | 15 [-34] | none |
| 2 | feedback@retro-tools.org | 36 [-60] | none |
| 3 | test.user+label@domain.co.uk | 65 [-93] | none |
Regex Cheat Sheet
| Character | Description & Meaning |
|---|---|
| . | Matches any single character except newline. |
| \d / \D | Matches any digit (0-9) / any non-digit character. |
| \w / \W | Matches word character (alphanumeric + underscore) / non-word. |
| \s / \S | Matches any whitespace character / non-whitespace. |
| ^ / $ | Position anchors: start of string or line / end of string or line. |
| * / + / ? | Quantifiers: 0 or more / 1 or more / optional (0 or 1). |
| {n} / {n,m} | Quantifiers: exactly n times / between n and m times. |
| [abc] / [^abc] | Character class: matches a, b, or c / matches anything EXCEPT a, b, or c. |
| (abc) | Capturing group: groups characters and creates a match group. |
| (?:abc) | Non-capturing group: groups characters without capturing. |
| a | b | Alternation: matches expression a OR expression b. |
| \b / \B | Matches a word boundary / non-word boundary. |