Regex Tester
Test JavaScript patterns and flags against sample text without sending the text to a tool server.
Matches appear here.
JavaScript regex notes
Enter the pattern without surrounding slashes. Supported syntax depends on your browser. Complex patterns can be slow on large input, and a match does not prove that data—such as an email address—is valid or safe.
Your tool input is processed in your browser. Analytics and advertising may receive ordinary usage and device data.
FAQ
What does the g flag do?
It finds every match instead of stopping after the first one.
Is the output inserted as HTML?
No. Matches are appended as text nodes so sample content cannot become page markup.
Reviewed: 2026-08-09