Home β€Ί Developer Tools β€Ί Regex Tester

Regex Tester

Write a pattern, see matches highlighted live β€” with capture groups and all the flags.

πŸ”’ Everything runs in your browser β€” patterns and text are never sent anywhere

Ad Space Β· AdSense code goes here later

Flags cheat-sheet

g finds every match instead of stopping at the first Β· i ignores letter case Β· m makes ^ and $ match each line's start and end Β· s lets the dot match newlines Β· u enables full Unicode mode (needed for emoji ranges and scripts like Bangla). The tester uses your browser's native JavaScript regex engine β€” exactly what runs in Node.js and front-end code, so what matches here matches in production.

FAQ

Which regex flavor is this?
JavaScript (ECMAScript) β€” the same engine as Node.js and browsers. Most patterns port directly to Python or PHP, but a few features (like lookbehind support and named groups syntax) can differ.
Why does my pattern show an error?
The pattern isn't valid regex syntax β€” common culprits are unescaped special characters ( ) [ ] . * + ? and unbalanced brackets. The exact engine error is shown to help you fix it.
What are capture groups?
Parts of the pattern wrapped in parentheses β€” each match lists its groups separately, which is how you extract just the piece you need (like the domain out of an email).

Related Tools