Test and debug regular expressions with real-time matching, capture groups, and common pattern library. Supports JavaScript regex syntax.
//g
Flags:
Enter a regex pattern to see results
Frequently asked questions
This tester uses JavaScript regex syntax (ECMAScript). It supports all standard flags including global (g), case-insensitive (i), multiline (m), and dotAll (s).
Capture groups are parts of your pattern wrapped in parentheses (). They let you extract specific portions of a match. The results panel shows each numbered group.
Yes — toggle the Replace mode to enter a replacement string. You can use $1, $2 etc. to reference capture groups in your replacement.