Regex Tester

Test regular expression patterns with live highlighting and match group extraction.

Regular Expression Pattern

/ /g

Test String

Common Patterns

Regex Flags Reference

Global (g): Find all matches rather than stopping after the first match.

Case Insensitive (i): Case-insensitive matching (a matches A and a).

Multiline (m): ^ and $ match start/end of each line, not just start/end of string.

Dot All (s): The dot (.) matches newline characters as well.