Regex Tester

Test regular expressions online, find matching text, inspect capture groups, and replace text using JavaScript regular expressions.

Regular Expression

Enter a pattern without surrounding slashes
0 characters

Find & Replace

Supports JavaScript replacement patterns

Common Regex Examples

These are basic example patterns, not complete validation rules for every possible email, phone number, date, or URL.

This tool uses JavaScript's built-in RegExp engine. Some regex features and syntax differ between programming languages. Very complex or pathological patterns can take a long time to execute.

Scroll to Top