Regex Tester

Test your regular expressions in real-time, use our AI-Powered Assistant or browse our common pattern library.

//
5 Matches found
Hello World! 123 Testing regex.
g

Global (g)

Finds all matches in the text, not just the first one.

i

Insensitive (i)

Makes the match case-insensitive (ignores uppercase).

m

Multiline (m)

Allows ^ and $ to match the start/end of each line.

Regex Quick Survival Guide

Special Characters

. Any character except newline
\d Any numeric digit (0-9)
\w Any letter, number, or underscore
\s Spaces, tabs, newlines
^ / $ Start and end of a string

Quantifiers

* 0 or more times
+ 1 or more times
? 0 or 1 time (optional)
{n} Exactly n times
[abc] Any character inside brackets

Don't Know Where to Start?

Regular expressions can be intimidating. That's why we've included a Pattern Assistant that lets you search for what you need using simple words.

Our library of patterns covers everything from email validations to credit card number extraction and IP addresses, all executed locally for privacy.

100% Private Your texts and patterns never leave your browser.
V8 Engine Uses the native regex engine for maximum compatibility.

// Example: Extract Emails

const regex = /[a-zA-Z0-9.-]+@[a-z]+\.[a-z]{2,}/g;

const matches = text.match(regex);


/* Immediate results on the right panel */