Test JavaScript regular expressions against sample text with visible match results.
No matches found
Check a pattern in the browser's JavaScript regex engine before moving it into your code. Flags affect matching behavior, so keep them visible while comparing examples. Include edge cases that should not match as well as expected successes.
Test ^cat$ with and without the multiline flag against a three-line sample to inspect how anchors behave.
Results follow the current browser's JavaScript regex support. Other engines, including PCRE and Python, can interpret patterns differently.
Enter a regular expression and select its flags. Paste representative matching and non-matching text. Inspect highlighted matches, groups, and replacement behavior when needed.
Results follow the current browser's JavaScript regex support. Other engines, including PCRE and Python, can interpret patterns differently.
No registration, no tracking of your content, no server uploads. Don't just take our word for it:
Your files and text are processed entirely on your device. Nothing is ever sent to us.
Once loaded, this tool keeps working with your Wi-Fi turned off. Try it.
Open your browser's DevTools → Network tab. You'll see zero requests carrying your data.
Discover other powerful utilities designed to supercharge your workflow and boost productivity.
Ask a local AI model to explain a regular expression in plain language.
Generate a draft regular expression from a description using a browser-run AI model.
Pick a random winner from a list of entries with browser-local selection.