Skip to content

Regex Tester

Embed

Paste this where you want Regex Tester on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/regex-tester/" width="100%" height="500" frameborder="0" loading="lazy" title="Regex Tester"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/regex-tester/">Regex Tester</a> by BrowserUtils</p>

Test and debug regular expressions with live matching.Runs in this tab.

//g

Next step

About Regex Tester

Free online regex tester. Write regular expressions and test them against sample text with real-time match highlighting. It runs in your browser. Nothing is sent to a server.

Questions

What regex flavour does this use?
This tool uses JavaScript regular expressions (ECMAScript specification), which is the same engine used in web browsers and Node.js.
How do I test a regular expression against sample text?
Type your regex pattern in the pattern field and paste sample text below it. All matches are highlighted in real time as you type, so you can iterate quickly.
Does the regex tester support flags like global and case-insensitive?
Yes, you can toggle common flags including global (g), case-insensitive (i), multiline (m), dotAll (s), and Unicode (u) using the flag checkboxes.
Is the regex tester safe for testing patterns with sensitive data?
Yes, all matching runs locally in your browser. Your patterns and test strings are never sent to any server.
Why does my regex work here but not in Python or PHP?
Different languages have slightly different regex engines. JavaScript regex lacks some features found in PCRE (used by PHP and Python), such as lookbehind of variable length and possessive quantifiers.

More in Text & String Utilities

All 28 text & string utilities