Test patterns. See matches instantly.
Test JavaScript regular expressions against real text, inspect matches and groups, and adjust common flags in one clean workspace.
Matches will appear here.
Test JavaScript regular expressions against real text, inspect matches and capture groups, and switch common flags without leaving your browser.
About This Tool
ToolsFaction Regex Tester gives developers a focused workspace for checking regular expressions against sample or real-world text. Enter a pattern, choose the flags you need and inspect each match with its index and capture groups. It is useful for validating patterns for emails, logs, identifiers, text extraction and many other development tasks.nnTesting runs directly in your browser using JavaScript regular expressions, making quick pattern experiments fast and convenient.
How to Use
- Enter a regular expression pattern without the surrounding slash characters.
- Choose any flags you need, such as Global, Ignore case, Multiline or Dot all.
- Paste the text you want to test into the Test Text panel and choose Test Regex.
- Review each match, its starting index and any capture groups in Match Details.
Example
Use the pattern [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,} with the Global flag to find email-like strings in a block of text.
Frequently Asked Questions
What kind of regex does this tester use?
ToolsFaction Regex Tester uses JavaScript regular expression syntax supported by your browser.
What does the Global flag do?
The Global flag searches for all matches instead of stopping after the first match.
Can I inspect capture groups?
Yes. Match Details lists capture groups returned for each match.
Does the tester show match positions?
Yes. Each match includes its starting index in the test text.
Is my test text uploaded?
Regex testing is designed to run directly in your browser.
Is the Regex Tester free?
Yes. The ToolsFaction Regex Tester is free to use and does not require sign-up.