.*Developer Tool

Regex Tester

Test and debug regular expressions with real-time matching and highlighting. Learn regex patterns with common examples.

//g

Common Patterns

Quick Reference

.Any character
\dDigit [0-9]
\wWord char
\sWhitespace
^Start of line
$End of line
*0 or more
+1 or more
?0 or 1
{n}Exactly n
[abc]Character set
()Capture group
|Alternation

💡 Tips

  • • Use \ to escape special characters
  • • Named groups: (?<name>...)
  • • Non-capturing: (?:...)
  • • Lookahead: (?=...)
  • • Lookbehind: (?<=...)