Regex Tester

Test and debug regular expressions with real-time matching and explanations

Regular Expression

//g

Test String

Common Patterns

Information

JavaScript Regex:

This tester uses JavaScript's RegExp engine. Results may vary in other languages.

Common Flags:

  • g: Global - find all matches
  • i: Ignore case
  • m: Multiline mode
  • s: Dot matches newlines

Tips:

  • • Use capture groups () to extract parts
  • • Test with various inputs
  • • Escape special characters with \
  • • Use online regex validators for complex patterns

Privacy:

All regex testing is done locally. No patterns or test strings are sent to external servers.