Regex Tester
Build and test regular expressions with live match highlighting.
Loading tool…
About this tool
Write a regular expression and test it against sample text, with live match highlighting, capture groups, and flag toggles.
How to use
- Enter your regular expression and flags.
- Paste test text into the sample area.
- Matches and capture groups are highlighted instantly.
FAQ
Which regex flavor is used?
Native JavaScript RegExp syntax (ECMAScript), the same engine used by browsers and Node.js.
Can I test replacements too?
Yes, enter a replacement pattern to preview the result of String.replace with your regex.