Regex Tester

Test and debug regular expressions with live match highlighting. Enter a pattern, flags, and input text to see matches instantly.

About Regex

Regular expressions (regex) are patterns used to match character combinations in strings. Useful for validation, searching, and text manipulation.

  • Syntax: /pattern/flags
  • Common flags: g (global), i (ignore case), m (multiline)
  • Examples: \d+ (digits), \w+ (words), ^abc (starts with abc)

Tips

Use g flag for global search, i for case-insensitive, m for multiline.

Test with different patterns and flags to see how matches change.