Offline Regex Tester Free
Test regular expressions against target strings.
Runs offline in Devy, a desktop app with 234 developer tools for Windows, macOS and Linux. Free in Devy Tools, with no account and no time limit.
What the Regex Tester is for
A regex tester runs a regular expression against sample text and highlights every match, so you can get a pattern right before it goes into your code.
In Devy you enter the pattern and flags, paste your test text, and see the matches highlighted with their positions. To have a pattern explained piece by piece, use the Regex Explainer.
Example
Pattern (flags: g)
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b
Text:
Contact [email protected] or [email protected]
Invalid: @missing.com, nodomain@ Matches
[email protected]
[email protected]
2 matches Why use it offline
Validate real payloads and configs without pasting them into someone else's website. Everything runs on your computer, even with no internet.
- Nothing you paste or open is uploaded
- Works on a plane, behind a VPN or with no network
- No ads, no sign-up, opens in a second
How to use the Regex Tester
- Download Devy for Windows, macOS or Linux and open it.
- Search for “Regex Tester” on the home screen, or open the Validators & Testers category.
- Paste your input or open a file, then copy or save the result.
Good to know
- Without the g (global) flag, only the first match is found.
- Escape characters that have a special meaning when you mean them literally: \. matches a dot, while . matches any character.
- * and + are greedy: <.*> matches from the first < to the last >. Use <.*?> to stop at the first >.
- Regex syntax differs slightly between languages (JavaScript, Python, PCRE, .NET). Devy uses JavaScript's engine, so test lookbehind and named groups in your target language too.
More validators & testers tools in Devy
Questions
Which regex flavour does it use?
JavaScript's, the same as browsers and Node.js. Most patterns behave the same in Python, Java, PHP and .NET; the differences are mainly in advanced features.
Can I use it on log files with real data?
Yes. The text stays on your computer, so testing against real logs or customer data doesn't send them anywhere.
Is the Regex Tester free?
Yes. The Regex Tester is one of the 45 tools in Devy's free plan. There's no account, no trial to run out and no limit on use.
Does it send my data anywhere?
No. The Regex Tester runs inside the Devy desktop app on your computer. What you paste or open isn't uploaded, logged or shared, and it works with no internet connection.
Which computers does it run on?
Windows, macOS and Linux. Download Devy from this site or install it from the Microsoft Store.