Regex Tester
Test regular expressions online with replacement and code generation support
Regular Expression
//g
Test Text
Match Results
Enter a regex pattern and test text to see match results
Common Patterns
Tips
- • Use \ to escape special characters, e.g. \., \*
- • Click a common pattern to fill in the regex quickly
- • Click a match result to copy it
- • Use $1, $2 etc. to reference capture groups in replacement
- • Enable the s flag to make . match newlines too