Regex Tester
When you want to check that a regular expression matches as you expect.
What you enter is never uploaded. Everything is processed on this device.
- 1Write a pattern
- 2Enter the test text
- 3See the matches
Done
🔒 Your files are never sent to an external server. Everything is processed safely inside this browser.
If PDF Mikata was useful, a small tip would mean a lot.
Send a tip (¥300)Send a gift (Amazon wishlist)Tools often used together
Compare Two Texts (Diff)See the differences between two texts in color.
Character Counter (for Applications and Reports)Count characters, lines and manuscript sheets.
Remove Duplicate Lines and Sort a ListRemove duplicates and sort a list.
Merge PDFsCombine PDFs into one.
How to use
- Enter a pattern in "Regular expression pattern".
- Enter the text you want to try in "Test text".
- The number and positions of matches are shown.
How it works
- It uses the JavaScript regular expressions of your browser.
- Flag "i" ignores case, "m" works line by line, and "s" lets "." match line breaks.
Notes
- Even without flags, all matches are searched for.
- Very complex patterns can run slowly.
FAQ
Is what I enter sent anywhere?
No. Everything is processed inside the browser on your device.
Can I use $1 in the replacement?
Yes. Writing $1 or $& in "Replacement" puts the matched parts in.
If PDF Mikata was useful, a small tip would mean a lot.
Send a tip (¥300)Send a gift (Amazon wishlist)