Regex Tester

Test and debug regular expressions with live match highlighting. Supports all flags and named capture groups.

/
/g
Examples:

JavaScript Regex Flags

g
Global — find all matches, not just the first
i
Case insensitive — A matches a
m
Multiline — ^ and $ match start/end of each line
s
Dotall — . matches newlines too