Regex Tester
Test regular expressions in real time with match highlighting and capture groups.
Quick:
FAQ
What regex engine does this use?
This tester uses the JavaScript RegExp engine built into your browser. Syntax is compatible with JavaScript regex, including lookaheads, named groups, and Unicode.
What do the flags mean?
g = global (find all matches), i = case-insensitive, m = multiline (^ and $ match line boundaries), s = dotAll (. matches newlines), u = unicode, y = sticky.
How do I match a literal dot or plus sign?
Escape special regex characters with a backslash: \. matches a literal dot, \+ matches a literal plus. Special characters include . * + ? ^ $ { } [ ] | ( ) \