Skip to main content

Regex Tester

Test and debug regular expressions with live match highlighting.

//g

Frequently Asked Questions

What regex syntax does this support?

JavaScript (ECMAScript) regular expression syntax, which is compatible with most modern programming languages.

What do the flags do?

g = global (find all matches), i = case-insensitive, m = multiline (^ and $ match line boundaries), s = dotAll (. matches newlines).

How do I capture groups?

Wrap parts of your pattern in parentheses, e.g. (\d+). Captured groups are shown in the match list below the test string.

Related Tools