Back to all tools
Regular Expression Tester
Test and debug your regex patterns with real-time matching and visual feedback
Developer Tools
//
g
Global - Find all matches
Case insensitive
Multiline - ^ and $ match line breaks
Dotall - . matches newlines
Unicode - Treat pattern as unicode
Sticky - Match from lastIndex only
About Regular Expressions
Regular expressions (regex) are patterns used to match character combinations in strings. This tool allows you to test your patterns in real-time.
Common Patterns:
\d- Any digit (0-9)\w- Any word character (a-z, A-Z, 0-9, _)\s- Any whitespace.- Any character (except newline)^- Start of string$- End of string*- 0 or more times+- 1 or more times?- 0 or 1 time
Capture Groups:
Use parentheses () to create capture groups. These can be referenced in replacements using $1, $2, etc.