Daily Task Tool LogoDaily Task Tool

RegEx Tester

Back

Load 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 ValueIndex [Range]Groups
1support@example.com15 [-34]none
2feedback@retro-tools.org36 [-60]none
3test.user+label@domain.co.uk65 [-93]none

Regex Cheat Sheet

CharacterDescription & Meaning
.Matches any single character except newline.
\d / \DMatches any digit (0-9) / any non-digit character.
\w / \WMatches word character (alphanumeric + underscore) / non-word.
\s / \SMatches 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 | bAlternation: matches expression a OR expression b.
\b / \BMatches a word boundary / non-word boundary.