🏠 Home πŸ”§ Tools πŸ“ Blog πŸ‘‹ About πŸ“¬ Contact ⚑ All Free Tools
πŸ” Dev Tools β€” Free & Instant

Free Online Regex Tester

Test regular expressions in real time with match highlighting, capture groups, replace mode and a built-in cheat sheet. Supports all JavaScript regex flags.

⚑ Real-time Matching 🎨 Match Highlights πŸ“¦ Capture Groups πŸ”„ Replace Mode 🚩 All JS Flags πŸ“‹ Copy Results 🎯 Presets Library βœ… Live Validation
πŸ” Regular Expression
/ /
Enter a pattern above to start matching
Flags: g global i ignore case m multiline s dotall u unicode y sticky
Test String
Match Details
No matches yet
🎯 Common Regex Patterns

What Is a Regular Expression?

A regular expression (regex) is a sequence of characters that defines a search pattern. They are used for string searching, validation, parsing and text manipulation in virtually every programming language. In JavaScript, a regex is written between forward slashes: /pattern/flags.

Regex patterns can match simple literal text, or complex patterns like email addresses, URLs, phone numbers and dates using special metacharacters like \d, \w, +, *, ? and {n,m}.

JavaScript Regex Flags

FlagNameEffect
gGlobalFind all matches instead of stopping after the first
iIgnore caseCase-insensitive matching
mMultiline^ and $ match start/end of each line
sDotallDot (.) matches newline characters too
uUnicodeEnables full Unicode matching
yStickyMatches only from the lastIndex position

Common Regex Use Cases