Free Regex Tester Online

Test regular expressions with live match highlighting, capture groups, replace mode, and match count — free, no signup, instant results.

✓ Free Forever ✓ No Signup ✓ Live Matching ✓ Capture Groups
/
/
Flags: g global · i case-insensitive · m multiline · s dotAll · u unicode
Ready
Test String
Matches (highlighted)
Common Patterns — Click to Load
emailEmail address
URLHTTP/HTTPS URL
IPv4IP address
phoneE.164 phone
IBANBank IBAN
UUIDUUID v4
dateYYYY-MM-DD date
hex colorCSS hex color
trimLeading/trailing whitespace
sensitiveSensitive keywords

How to Use the Regex Tester

1

Enter a Pattern

Type your regular expression in the pattern field (without delimiters). Add flags like g, i, m in the flags field.

2

Paste Test Text

Enter the string you want to test in the test area. Matches are highlighted live as you type — no button needed.

3

Use Replace & Groups

Switch to Replace mode to run regex replace with group references ($1, $2). Switch to Groups to inspect all capture groups per match.

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.