Often, we need to prove regexes with an online tool or test them on different Regex engines. Here is an overview of online regex testers to assist you in your selection. Also, there is regex tester comparison table available.
Regex101
Regex101.com is a multi-purpose regex testing website where you can not only create and test regular expressions, but have them explained and debugged. The regex tester will highlight your regex pattern, detect errors and display detailed match information on the fly. A quick reference for the regex syntax is also available. The website supports JavaScript, PHP, PCRE and Python.
RegexHero
RegexHero is a .NET tester; it requires Silverlight plugin installation. It works great, especially in supporting named group replacements like: ${name2} ${name1}. It generates whether C#.NET or VB.NET code. Another feature is the benchmark scoping the code performance (iterations done per second). Also, you can choose the input text format, Unix (LF) or Windows (CRLF). It’s a great tool and free to install. For more features, Standard and Pro versions are available for a fee.
MyRegexTester
This tool is a convenient, fully-functional PHP engine tester with a good code generator for PHP, JAVA, JS, ASP.NET, C# and VB.NET. It provides matched groups highlighting, too. The PHP-like arrayed output is an essential feature.
RegexPal
RegexPal is a JavaScript engine testing tool for quick regex evaluation with convenient real-time regex syntax highlighting. It doesn’t support substitute or split functionality, though. However, it’s good in a mass match search.
Pagecolumn’s regex tester
Pagecolumn’s online fully-functional tool tests regexes both in PHP and JavaScript (neighbor link). One can select different JavaScript methods – exec, test, match, replace, split and its customized method, submatch. As a PHP tester, it supports both POSIX and PRCE, outworking with immediate PHP code generation. The JavaScript code is generated in real time, too. This nice outworked tester is good for beginners to write and play with regexes.
RegexLib
RegexPlanet
RegexPlanet is a regular expression test page for all known engines (languages): Java, JS, .NET, Python and also Perl, PHP, Ruby, XRegExp, while yet as beta-version. It allows multiple input strings for search (up to 10). It doesn’t generate a code, but provides target language functional outlook of the match/replace results and sub-results. The interface is also available in several European languages.
Rextester
This is a simple and practical .NET engine online regex test tool, outworking even named group substitutions: (?<name1>\w+)\s*(?<name2>\w+).
Gskinner
A fully-functional online tool, it provides a handy RegExp snippet sidebar with descriptions, usage examples and community regexes to make it easier to learn regexes. It uses ActionScript 3′s built-in RegExp engine. One shortcoming is that the front page is not scalable, making users strain their eyes.
Debuggex
The Debuggex is the online Regex testing tool that allows visualization of Regex match algorithms. It uses the JavaScript engine for testing and it is also good for instant regex pattern match by real time highlighting matches. Shortcomings are the lack of named group functionality and only limited flags (regex pattern modifiers) are possibile to use.
Rubular
This is a simple Ruby engine based tester with neither substitute nor split functionality.
Larsolavtorvik
This is a PHP PRCE/POSIX and JAVA online tester, a simple, on-the-fly tool.
11 replies on “Ten+ best online regex testers”
Anonymous, are you affiliated with it?
No he’s not, but I am :)! Feel free to contact me if you need anything Michael. I’d be happy to see my regex tester in your list.
http://www.regexr.com looks pretty good as well.
We released a new regex testing tool that is quite visual – http://regviz.org
We’d be happy if you could give it try.
Sure thing!
Hi all,
I have a file which contains 100+ regular expressions and I want to get the output or possibilities of those regular expressions.
Please help me how to resolve this issue.
Anup, do you have a testing ground for these regexes to test upon?
Testing complexity issue.
Ex. this regex \d might have only those possibilities: digits: 0-9, having 101 possibilities. Yet the more complicated regex is the more possibilities it may match to, having exponential increase.
This regex \d{,2} might match one to two digits: 0-99, having 102 possibilities.
for php https://www.phpregexonline.com
Try CodVerter`s regex tester: https://codverter.com/src/regextester
That’s a pretty nice list, well done!
May I suggest to add https://regex.guide, which is an open source tool for beginners allowing to write regular expressions through plain english sentences?
Added, in comments only though.