Regex Tester
Type a pattern, paste your text, and see matches highlighted with full match details. Runs entirely in your browser, nothing leaves your device.
How to use this
Type your pattern between the slashes, or click one of the preset buttons to start from a common pattern like an email or URL match. Adjust flags in the small box on the right, g for global or i for case-insensitive are the most common. Paste your text below and every match highlights instantly, with full details including each match's position and any capture groups shown underneath.
Frequently asked questions
How do I test a regular expression here?
Type your pattern between the slashes, paste your text below, and every match highlights instantly. You can also start from a preset such as an email or URL pattern.
Which regex flags can I use?
Set flags in the small box next to the pattern. The most common are g (find all matches) and i (ignore upper and lower case).
Does it show capture groups and match positions?
Yes. Beneath the text you see full details for each match, including its position and any capture groups.
Is the text I test sent anywhere?
No. The tester runs entirely in your browser and nothing leaves your device.