Test RegExp patterns live · Flags g i m s u d · Named groups · Replace · Split — free, no signup
Test any JavaScript regular expression online with live color-coded match highlighting. Supports all modern RegExp features: character classes, quantifiers, anchors, capturing groups, named groups, lookaheads, and lookbehinds. Everything runs natively in the browser.
Open the tester and start immediately — no account, nothing stored on any server.
Open the Regex Tester →The JavaScript RegExp engine supports all modern features. Common methods for using regex in JS code:
Greedy quantifiers (*, +, {n,m}) match as many characters as possible. Lazy quantifiers (*?, +?, {n,m}?) match as few as possible. Example: <.*> matches the entire <b>text</b> (greedy), while <.*?> matches only <b> (lazy).
By default, . does not match newline characters (\n, \r). The s flag (ES2018) makes . match any character including newlines, which is useful when matching patterns that span multiple lines.
Use u for any pattern involving non-ASCII characters, emoji, or Unicode property escapes (\p{Letter}). It also enforces strict escaping, catching typos like invalid escape sequences that the engine would otherwise silently ignore.