Regex tester
Enter a pattern and some text to see what it matches.
Runs in your browser. Nothing is uploaded.
How to use
- Type your pattern in Pattern, without the surrounding slashes.
- Add flags such as g for all matches or i to ignore case.
- Paste the text to test and read the highlighted matches.
Good to know
- This uses the JavaScript regular expression flavour. Other languages differ slightly.
- Patterns that would run for too long are stopped to protect your browser.
Questions
Which regex flavour does it use?
JavaScript. Features like lookbehind depend on your browser's support.
What do the flags mean?
g finds all matches, i ignores case, m treats each line as its own start and end, and s lets the dot match line breaks.
Why was my pattern stopped?
Some patterns can take an extremely long time on certain text. The tester stops them so the page stays usable.
Also known as: regular expression tester, regex checker, test regex online.