🔎

Free Online Regex Tester

Test and debug regular expressions with real-time match highlighting — free, private, no signup.

← Back to all tools

Advertisement

/ /
Enter a pattern and test string to see matches.

Advertisement

How to Use the Regex Tester

1

Enter your pattern

Type your regular expression in the pattern field. Add flags (g, i, m, s) to control matching behavior.

2

Paste your test string

Enter the text you want to match against. Matches are highlighted in real time as you type.

3

Review matches

See all matches listed below the preview with their index positions. Errors in your regex are shown in red.

Frequently Asked Questions

What regex engine does this use?

This tester uses JavaScript's built-in RegExp engine, which supports most standard regex syntax including lookaheads, backreferences, character classes, and quantifiers.

What do the flags mean?

g (global) finds all matches. i ignores case. m makes ^ and $ match line boundaries. s makes . match newlines.

How do I match email addresses?

Use the pattern \b[\w._%+-]+@[\w.-]+\.[a-z]{2,}\b with the gi flags to match emails case-insensitively.

Is my text sent to a server?

No. All regex matching happens in your browser using JavaScript. Your text never leaves your device.

Related Tools