Developer toolLiveRuns on your device
Regex Tester
Write a JavaScript regular expression and see every match highlighted live, with capture groups, named groups and positions, plus a replace preview. Supports the g, i, m, s, u and y flags.
How to use
Regex Tester in three steps
- 01
Type a pattern and choose flags.
- 02
Paste the text to test against.
- 03
Inspect matches and groups, or preview a replacement.
FAQ
Good to know
JavaScript (ECMAScript), exactly as your browser runs it — the same engine as Node.js and Chrome.
No. Patterns run in a background worker with a time limit, so a runaway pattern is stopped instead of locking up the tab.
No. The tool runs inside this browser tab. Your input is processed in memory on your device and is gone when you close the tab.
Related
More developer tools
- Live
JSON Formatter
Format, validate and minify JSON — with exact error positions.
Developer - Live
Base64 Encode / Decode
Encode text or files to Base64, and decode it back.
Developer - Live
URL Encode / Decode
Percent-encode text for URLs, or decode it back.
Developer - Live
UUID Generator
Generate random v4 UUIDs — one or a hundred at a time.
Developer