Test JavaScript regular expressions locally against text you provide.
Use JavaScript regular expression syntax.
For example, gi.
Matches
0No matches yet. Add test text or adjust the pattern.
Test a pattern
Enter a JavaScript regular expression, choose its flags, and paste the text you want to inspect. Matches and their zero-based indexes update as you type.
The tester uses the browser's native RegExp implementation, so the syntax and flags match JavaScript in modern browsers.
Useful flags
gfinds every match instead of stopping after the first.iignores letter case.mtreats each line as a separate line for^and$.slets.include line breaks.
Privacy
Pattern, flags, and sample text stay in this browser tab. Nothing is uploaded.