Regex Tester

Test regular expressions with live matching, groups, and common patterns

100% FreeNo SignupPrivacy-First

Regular Expression

//g

Find all matches instead of just the first

Match both upper and lowercase letters

Treat ^ and $ as start/end of each line

Allow . to match newline characters

Enable full Unicode support

Match only from lastIndex position

Test String

Enter a pattern and test string to see matches

Common Patterns

Click any pattern to load it into the tester

Regex Cheatsheet

About Regular Expressions

Regular expressions (regex) are powerful patterns used to match, search, and manipulate text. This regex tester provides real-time pattern matching with visual highlighting, making it easy to test and debug your regular expressions before using them in code.

Test your patterns with all standard regex flags including global (g), case-insensitive (i), multiline (m), dotall (s), unicode (u), and sticky (y). See instant visual feedback with color-coded matches and detailed information about capture groups, positions, and match counts.

Whether you're validating email addresses, parsing URLs, extracting data, or building complex search patterns, this tool helps you test and refine your regular expressions with a comprehensive library of common patterns and a detailed cheatsheet covering character classes, quantifiers, anchors, groups, and lookaheads.