← All tools

Developer tool

Regex Tester

Test a regular expression against sample text and inspect matching results in your browser.

Result
Your result will appear here.

Privacy note: most tools process input locally in your browser.

About the Regex Tester

Run a JavaScript regular expression against sample text and list matches or errors.

How to use this tool

Enter a pattern without slash delimiters, add valid flags such as g or i, paste sample text, and click Test expression.

Example

Pattern \d+ matches sequences of digits.

Tips for better results

Regular expressions can be complex; avoid untrusted patterns on huge text. This tool uses JavaScript regex syntax.

Frequently asked questions

What syntax does it use?

JavaScript regular expressions.

Why is my pattern invalid?

Check escaping, brackets and flags.