Regex Tester
Test patterns (regular expressions) on your text and see matches live.
Text with matches shown
Match list
Replace
How to use
- Pick an example, or type your own pattern.
- Paste your test text. Matches light up in yellow.
- Use the Replace box to change all matches at once.
FAQ
What is a regex?
A regular expression is a short pattern that finds text, like "five capital letters, four digits, one capital letter" for a PAN number. Programmers and data people use it to search, check and clean text.
What do the flags g, i, m, s, u mean?
g = find all matches, i = ignore capital or small letters, m = ^ and $ work on every line, s = dot also matches a new line, u = full unicode support.
Why is the page slow with some patterns?
A few badly written patterns take a very long time on long text. Make the text shorter or the pattern simpler.
Is my text uploaded?
No. It is tested inside your browser.