Regex Tester

Write a regular expression, choose its flags, and test it against text in real time.

//g

Local processing: your data is processed in your browser and never sent to Numelto or any external service.

What each flag does

g (global) finds all matches, not just the first one. i (insensitive) ignores upper/lowercase. m (multiline) makes ^ and $ match the start/end of each line, not just the whole text. s (dotAll) makes the dot (.) also match line breaks.

Privacy

Testing happens with JavaScript's native regular expression engine, in your browser. Neither the expression nor the text is sent to Numelto.

Common patterns to get started

The engine is JavaScript's, so some constructs from other languages (like atomic groups) might not work. To apply the expression to a text and replace matches, use find and replace.

PatternMatches
\d+One or more digits
[A-Za-z]+One or more letters
^\S+@\S+\.\S+$Something resembling an email address
\b\w+\bWhole words

Testing the expression before using it in your code

Type your pattern and a test text to instantly see what matches and what doesn't, including capture groups; this catches syntax errors or unexpected matches before you paste the expression into your program.

Frequently asked questions

Related tools

We use analytics cookies to understand which calculators are useful. They are never used for advertising. More information in our privacy policy.