Regex Tester
Test regular expressions in real time directly in your browser. Paste your text, enter the pattern, toggle flags and see matches highlighted live with their capture groups. Free, unlimited and 100% in the browser.
Flags
Enter a pattern and test text to see matches.
How to use
- 1Type the regular expression in the pattern field.
- 2Toggle the flags you need (g for all matches, i to ignore case, etc.).
- 3Paste your test text and matches are highlighted immediately.
- 4Check the match list to see the index, value and capture groups.
What it's for
- Validate formats like emails, dates or phone numbers.
- Test search-and-replace patterns before using them in code.
- Extract capture groups from complex strings.
- Learn regular expressions with real-time visual feedback.
Frequently asked questions
Is it free and unlimited?
Yes. It is completely free, no account needed and no usage limit.
Is my text sent to a server?
No. All processing happens in your browser; nothing is sent to a server.
Which flags are supported?
All standard JavaScript flags are supported: g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode) and y (sticky).
Does it support capture groups?
Yes. Capture groups (including named groups with (?<name>...)) are listed for each match.
Is there a text size limit?
Yes, text is capped at 50,000 characters and up to 500 matches are shown to keep the browser responsive.
