Skip to main content
Home Tools Regex Tester
🔧 Programming ✅ 100% Free ⚡ Instant

Regex Tester & Debugger

Test regular expressions with live match highlighting. See all matches, capture groups, and named groups in real time. Supports all JavaScript regex flags — g, i, m, s, u.

/
Flags:
Enter a regex pattern to begin.
Enter a regex above to see matches highlighted.
⚡ Common Patterns
EmailLoad →
URLLoad →
IP AddressLoad →
PhoneLoad →
Hex ColorLoad →
Date YYYY-MM-DDLoad →
URL SlugLoad →
JWT TokenLoad →

What is a Regular Expression?

A regular expression (regex) is a sequence of characters that defines a search pattern. Used in programming, text editors, and command-line tools, regex allows powerful text searching, matching, and manipulation. JavaScript regex supports capture groups, lookahead, lookbehind, named groups, and Unicode property escapes.

Frequently Asked Questions

The g (global) flag finds all matches rather than stopping at the first. The i (case insensitive) flag matches regardless of letter case. Most text processing tasks need both flags together.
Capture groups are parts of a regex wrapped in parentheses () that capture the matched text as a separate result. Named groups use (?<name>...) syntax. They appear in the match list below the preview.
.* is greedy — matches as many characters as possible. .*? is lazy — matches as few as possible. For example <.*> greedily matches an entire HTML string while <.*?> matches each individual tag.
Copied!