What is Regex Tester?
Enter a regular expression to highlight matches in your test string and list capture group values in a table. Add a replacement string to see the replaced result too. Examples of common patterns (email, phone numbers, and more) are included.
How to use
- 1
Enter a regex and flags (g, i, m, …).
- 2
Paste the text to test against.
- 3
Check the matches, groups, and replacement result.
Use cases
Writing validation patterns
Build a regex that checks a phone number format.
Bulk replacements
Test a replacement that masks IP addresses in logs.
FAQ
Which regex flavor is used?+
Your browser's JavaScript regular expression engine.