1. Home
  2. Developer Tools
  3. Regex Tester

Free Regex Tester Online

Test regular expressions with live match highlighting, capture groups and replace mode — free, no signup, runs instantly in your browser.

✓ Free Forever✓ No Signup✓ Live Matching✓ Capture Groups
//

Flags: g=global, i=case-insensitive, m=multiline, s=dotAll

2 matchesFound 2 matches
Test String
Matches (highlighted)
hello world, contact us at [email protected] or [email protected] for help.

How to use Regex Tester

1

Enter a pattern

Type your regex between the slashes and set flags (g, i, m, s) on the right.

2

Add a test string

Matches highlight live as you type. Switch to Replace or Groups to go deeper.

3

Inspect the results

See match count, run replacements with $1/$2 back-references, and view capture groups.

Frequently Asked Questions

Which regex flavor does this tester use?

This tester uses JavaScript's built-in RegExp engine — the same regex flavor used in Node.js, Chrome DevTools, and all modern browsers. It supports lookahead/lookbehind (ES2018+), named capture groups, and the s (dotAll) flag. PCRE-specific features like (?P<name>) are not supported — use (?<name>) for named groups instead.

How do I use capture groups in the replace?

Use $1, $2, etc. to reference capture groups in the replacement string. For example, pattern (\w+)\s(\w+) with replacement $2, $1 will swap two words. For named groups, use $<name>. Use $& to insert the whole match.

Why use this instead of regex101?

regex101 is great but requires an account to save patterns and is more complex than most developers need. This tester is a clean, fast, no-signup alternative for everyday JavaScript regex testing — match highlighting, replace mode, and group inspection all in one page.