Free Regex Tester

Test regular expressions, flags, and match groups in a fast developer-friendly interface.

Summary

Compiled expression: -

Match count: 0

Matches

Run a test to inspect match output.

Replacement Preview

Replacement output appears after running the test.

Frequently Asked Questions

Which regex flags are supported?

This tool supports JavaScript regex flags: g, i, m, s, u, and y.

Can I test capture groups and named groups?

Yes. Match output includes capture groups and named groups when present in your pattern.

Does replacement preview support backreferences?

Yes. You can use replacement patterns like $1, $2, and named group replacements supported by JavaScript.