Back to Dev Tools
🔍

Regex Tester

Test and debug regular expression patterns in real-time. View highlighted matches, capture groups, and match counts with support for global, case-insensitive, and multiline flags.

🔍

Regex Tester

Test regular expression patterns in real-time with highlighted matches

/ /
Flags
0 chars · 0 matches

Matches

/gi
Enter a pattern and test string to see matches highlighted here...
Regex Quick Reference
. Any char
\d Digit [0-9]
\w Word char
\s Whitespace
* 0 or more
+ 1 or more
? 0 or 1
{n} Exactly n
^ Start
$ End
[abc] Set
(x) Group

About Regular Expressions

Regular expressions (regex) are patterns used to match character combinations in strings. They're a powerful tool for text processing, validation, search and replace, and data extraction in virtually every programming language.

Validation

Validate emails, phone numbers, SSNs, and custom formats

Extraction

Extract specific patterns from text using capture groups

Search & Replace

Find and replace text using regex patterns in editors and scripts

Free online Regex Tester. Test regular expression patterns instantly with real-time highlighting, capture group display, and match counting. Supports global (g), case-insensitive (i), and multiline (m) flags. Includes a quick reference guide for common regex patterns. Perfect for developers, data analysts, and anyone working with text pattern matching.