DEVELOPER TOOLS
Regex tester
Try a regular expression against sample text.
Getting the tool ready...
Inputs are processed in your browser. This build does not send them to a server.
How it works
Try a regular expression against sample text. Fill in the form and choose Test pattern. It opens with an example already filled in, so you can see how it works first.
What you need
- Pattern
- Flags
- Text to search
What you get
- Matches
- Copy or save the result
Example
The tool opens with Pattern: (\w+)@(\w+)\.com; Flags: gi, and some example text.
That gives: Matches: 2.
Good to know
Uses your browser's JavaScript regular expression engine. Without the g flag only the first match is shown. A badly behaved pattern can make the page slow on long text.
Your privacy
What you type is worked out in your browser and is not sent anywhere. There are no accounts, adverts or tracking scripts.