๐ง 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
๐ก Ctrl+D (Cmd+D on Mac) to bookmark for next time
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.