All tools/Web & CSS

Regex Tester

Test a regular expression against sample text with live highlighted matches.

/ /

How this works & FAQ

Type a JavaScript regular expression and flags, then a test string — matches highlight live, and each match with its capture groups is listed below.

What do the flags mean?

g finds all matches (not just the first), i is case-insensitive, m makes ^/$ match line starts/ends, s lets . match newlines.