Regex Tester

Test JavaScript regular expressions with live match highlighting.

Your data is processed in your browser and is not uploaded to our servers.

About the Regex Tester

Regex Tester highlights every match of a regular expression in your sample text, lists capture groups and previews search-and-replace results. It uses the JavaScript regex engine with flags g, i, m, s and u.

How to use the Regex Tester

  1. Enter the regular expression.
  2. Choose flags and enter test text.
  3. Review matches, groups and the replacement preview.

Frequently asked questions

Which regex flavor is used?

JavaScript (ECMAScript), as used in browsers and Node.js.

Does it support Arabic?

Yes. With the u flag you can use Unicode classes such as \p{L}.