Tested entirely in your browser — nothing is sent to our servers
Regular expression
//
Samples:
Test string
Related tools
Frequently asked questions
What is a regular expression?
A regular expression (regex) is a sequence of characters that defines a search pattern. It is used to find, match, and manipulate text based on patterns rather than exact strings.
What regex flags are available?
Common flags include: g (global — find all matches), i (case insensitive), m (multiline — ^ and $ match line starts/ends), s (dotAll — dot matches newlines).
What does the g flag do?
The g (global) flag finds all matches in the text instead of stopping at the first match. Without it, only the first match is returned.
How do I test if a regex matches a whole string?
Use anchors — ^ for start and $ for end. For example ^hello$ only matches the exact string "hello" and nothing else.
Is my data safe?
Yes. All regex testing happens entirely in your browser — nothing is sent to our servers. Your text never leaves your device.