Regex tester
Flags
Test text
0 characters · 1 lines
Match preview
Enter a patternIndices are zero-based UTF-16 offsets
Syntax reference & tips
.Any character except line breaks; s includes them\d / \w / \sDigit / word character / whitespace^ / $Start / end; m applies to each lineu / vUnicode mode or Unicode sets; u and v are mutually exclusived / yd includes group indices; y matches consecutively without skipping unmatched text[abc] / [^abc]Character set / negated set* / + / ?Zero or more / one or more / optional{2,5}Repeat 2 to 5 times(…) / (?:…)Capturing / noncapturing group(?<name>…)Named capture groupExamples demonstrate matching; they are not complete email, URL or calendar validators. Empty matches use a vertical marker; string offsets may differ from visual character counts.
MDN · JavaScript RegExp ↗Enter the pattern without / delimiters. Uses native JavaScript regular expressions, not PCRE or Python. Matching runs in an isolated worker with a time limit.