Skip to content

Regex Tester

Test regular expressions with live match highlighting and groups.

5.0 (1 rating)
/ / g

Highlighted matches 0 matches
Match details

Processing and privacy

Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.

Read the privacy policy

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

5.0

1 rating

  • 5 stars 1
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

Reference resources

How to use the Regex Tester

Test JavaScript regular expressions against sample text and inspect matches.

  1. 1 Enter the expression between the displayed slash delimiters.
  2. 2 Choose flags such as global, ignore case or multiline and paste Test string.
  3. 3 Review Highlighted matches, match totals and Match details.

Example and practical tips

Try a short digit-matching pattern on text containing two numbers, then toggle the global flag.

Frequently asked questions

Will this match another regex engine exactly?

Not necessarily. Syntax and Unicode handling vary by language; this tool uses the browser’s JavaScript engine.

Can a pattern freeze the browser?

Very complex or backtracking-heavy patterns can be slow. Test a small sample before increasing input size.

  • How to Use Regex Tester

    Test JavaScript regular expressions online with live match highlighting and flags. See every match in your sample text. Free regex tester for developers.

Browse all guides

Report an issue

Something broken or not quite right? Tell us and we will look into it.

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help