Regex Tester
Write a regular expression, choose its flags, and test it against text in real time.
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.
| Pattern | Matches |
|---|---|
| \d+ | One or more digits |
| [A-Za-z]+ | One or more letters |
| ^\S+@\S+\.\S+$ | Something resembling an email address |
| \b\w+\b | Whole 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.