27 chars · 1 line
5 chars · 1 line
27 chars · 1 line
5 chars · 1 line
Regex testing guide
Enter a JavaScript regex pattern and flags above, paste the text you want to check, and keep Test selected for a direct Match or No match result. Invalid patterns and flags are reported before the sample text is evaluated. This tool is free to use. No account or payment is required.
Last updated
VetaTool compiles the pattern using the browser's RegExp constructor. Missing parentheses, malformed character classes, unsupported flags, and duplicate flags therefore fail before a text result is shown.
This page tests JavaScript regex behavior specifically, so a pattern copied from PCRE, Python, .NET, or another flavor may require changes before it compiles.
Case-insensitive, multiline, dotAll, Unicode, sticky, and other supported JavaScript flags change how the same pattern is evaluated. Test mode preserves the flags exactly as entered and does not automatically add a global scan.
The pattern and sample text are evaluated in the browser. That is useful when the test input contains private logs, identifiers, stack traces, or copied application text that should not be sent to a remote regex service.
A case-insensitive word-boundary pattern matches the product name even though the sample text uses different capitalization.
/\bvetatool\b/i
Try VetaTool in the browserMatchCommon questions
No. Enter only the pattern body in the Pattern field and put flags such as g or i in the Flags field.
No. Test mode answers whether at least one match exists. Use Regex Matcher when you need every occurrence and capture group.
Regex flavors differ. This tool follows JavaScript RegExp syntax and browser support rather than PCRE, Python, Java, or .NET rules.
Debugging a specific Regex issue? Browse Regex troubleshooting.