๐Ÿ”ง Utility Tools

Regex Tester

Test regular expressions live. See matches highlighted, capture groups, and match count. Supports all JavaScript regex flags. Nothing uploaded.

๐Ÿ”ฅ Used 13,215 times this month
Regular expression pattern
/
Test string
Matches highlighted
๐Ÿ“Œ Embed this tool on your website (click to copy)
<iframe src="https://toolifycore.com/tools/regex-tester.html" width="100%" height="700" frameborder="0"></iframe>
๐Ÿ’ก Ctrl+D (Cmd+D on Mac) to bookmark for next time
๐Ÿ’ก Developer? Get new tool updates on our blog
Visit Blog โ†’

How it works

01

Enter Pattern

Type your regex pattern (no need for surrounding slashes).

02

Set Flags

Click flag buttons or type them in the flags input.

03

See Matches

Live highlighting shows every match. Groups shown below.

Frequently asked questions

Which regex flavor is used?
JavaScript regex (ECMAScript). Most syntax is identical to PCRE (used by PHP, Python, Perl), but some advanced features like lookbehind may work differently. Test the exact pattern in your target language for production use.
What do the flags mean?
g = global (find all matches, not just first). i = case-insensitive. m = multiline (^ and $ match line breaks). s = dotall (. matches newlines). u = unicode. y = sticky (match from lastIndex only).
How do I use capture groups?
Wrap parts of your pattern in parentheses ( ) to capture. Named groups use (?<name>pattern). Both are shown separately in the match details below the highlighted view.
Is my regex or text uploaded?
No. Everything runs in your browser using the native RegExp object. Your patterns and test data never leave your device.
All tools are free, browser-based, and process files locally โ€” your data never leaves your device. Read our Privacy Policy | Visit our blog for tips and guides.