🧪 Regex Tester — Free Online
Test JavaScript regex live with flags, match highlighting, capture groups and cheat-sheet. Free online regex tester with friendly errors, no signup.
Debug patterns against your own text: live matches, capture groups, flags g/i/m/s/u/y, and plain-English error messages.
How to use regex tester
- Enter a pattern and toggle flags.
- Paste test text.
- Inspect highlighted matches and groups.
Features
- Flags g/i/m/s/u/y toggles
- Match + group highlighting
- Friendly syntax errors
- Cheat-sheet included, local
Privacy
This tool runs entirely in your browser. Your files and text stay on your device — nothing is uploaded, and nothing is sent to analytics. Privacy policy
How this tool is tested
This page is the real tool, not a screenshot: it runs locally in your browser and is verified in current Chrome, Edge, Firefox, and Safari before each release. Your input stays on your device for supported tasks.
By Mccowns.com team · Reviewed
Frequently asked questions
How do I test a regex online?
Enter your pattern (without slashes), pick flags, paste test text — matches and groups highlight live.
Which flavor?
JavaScript (ECMAScript) — the browser’s engine. PCRE-only features like lookbehind limits may differ.
Catastrophic backtracking?
Inputs are length-capped and patterns run synchronously; pathological patterns may still hang the tab briefly — keep test strings small.
Private?
Patterns and text never leave your browser.