Regex Tester
Write a pattern to see matches and capture groups
What this tool does
Write a pattern to see matches and capture groups. It belongs to the “Developer tools” collection and runs right on this page — no signup and nothing to install.
Who it is useful for
Especially helpful for: Developers.
How to use it
- Enter “Pattern”.
- Enter “Flags”.
- Enter “Text”.
- The result appears instantly below, and updates as you change any value.
- Copy, download or print the result and use it.
Worked example
With these sample values:
- Pattern: (\d{4})-(\d{2})-(\d{2})
- Flags: g
- Text: Today 2026-10-17, tomorrow 2026-10-18
the tool shows:
- Total matches
- 2
- #1 (position 6)
- 2026-10-17
- Group 1
- 2026
- Group 2
- 10
- Group 3
- 17
- #2 (position 27)
- 2026-10-18
- Group 1
- 2026
Replace the values in the tool above with your own numbers.
Tips for better results
- Your files and text are processed on your own device and are not uploaded.
Limitations and precautions
Very long input may be slow on an older phone. The tool follows standard rules and may not cover every special case.
Frequently asked questions
Is this tool free?
Yes. It is free, needs no signup and has nothing to install.
Is my data safe?
This tool runs entirely in your phone or computer browser. Your data and files are not sent anywhere.
Does it work on a phone?
Yes. The site is designed for phones first and works in any modern browser.