Regular expression tester
Type a pattern, toggle flags, run against your text, and list each match with its index—handy for debugging regex locally.
Pattern on top, flags in the middle, haystack below. Run to list matches on the right.
Flags
Matches
Enter a pattern and text, then run.
FAQ
- Why no matches?
- Try the g flag for all matches; without g, only the first attempt is shown. Check escaping too.
- Is text uploaded?
- No—matching runs with JavaScript in-page.
You might also like
- JSON formatter
Paste JSON from APIs or config files, prettify or minify it, and catch syntax mistakes.
- Text diff
Paste two versions side by side; we diff by line and highlight adds and deletes—good for configs or logs.
- JWT
Split a JWT and decode header and payload as JSON. Does not verify signatures—never use for security decisions.