Abstract

In this article, we are giving an overview of free tools to create and test Regex expressions. Even if one is skillful in creating Regex expressions, if they are complicated or you do not do it often, it is good to have an available tool to test Regex on different texts and verify they work properly.

Introduction

In this article, we will give a short overview of a selection of freely available tools to test Regex, which are regularly maintained and up to date. We plan to provide a brief overview of the main characteristics and our impressions. Here is a list of free tools that caught our attention on the internet:

Website tools, free

  1. Website Regex101
  2. Website RegexPal
  3. Website RegExr
  4. Website CyrilEx Regex Tester

Windows apps, free

  1. Regex Hero application
  2. Expresso application

Visual Studio-addon, free

  1. Visual Studio extension – Regex Editor

We will shortly test every tool with the same Regex expression and text:

Website Regex101

This is a website tool. Lovely interface and coloring of both expressions and test text. Here is a screenshot of the main form, divided into 2 parts to fit the article:

Left side panel

Regex 7 free test tools

Right side panel

Regex 7 free test tools

Please notice the following in the main form,

Interesting is a Code generator function that can generate code in different languages:

Generated code C#

Regex 7 free test tools

Generated code Javascript

Regex 7 free test tools

Interesting is the "Regex debugger" function, which is available just in the PHP version of Regex, that can help analyze the execution of Regex and its complexity, and you can execute Regex step-by-step and see where it fails.

Regex 7 free test tools

Altogether, it gives a nice impression of this online tool.

Website RegexPal

This is a website tool. Here is a screenshot of the main form,

Regex 7 free test tools

Note the following,

Generally, it gives an impression of a humbler version of the test tool.

Website RegExr

This is a website tool. Here is a screenshot of the main form, divided into 2 parts to show different panels:

Panel "List" selected,

Regex 7 free test tools

Panel "Explain" selected,

Regex 7 free test tools

Note the following,

We didn't like that the web form is so rigid, and it is impossible to move borders and enlarge panels of interest.

Website CyrilEx Regex Tester

This is a website tool. Here is a screenshot of the main form,

Regex 7 free test tools

Please notice the following in the main form,

We really liked the graph it produced, and so far, it was the best explanation shown. But other options are a bit humble.

Regex Hero application

This is a standalone Windows application. Here are screenshots:

Main panel

Regex 7 free test tools

Code generator panel

Regex 7 free test tools

Panel with "natural language explanation" of the Regex,

Regex 7 free test tools

Benchmark panel

Regex 7 free test tools

Executed Benchmark

Regex 7 free test tools

Please notice the following,

It looks nice and can be useful to .NET developers.

Expresso application

This is a standalone Windows application. Here are screenshots:

Main panel

Regex 7 free test tools

Expressions designer panel

Regex 7 free test tools

Code generator panel

Regex 7 free test tools

Benchmark panel

Regex 7 free test tools

Please notice the following,

The application leaves an impression of a well-thought-out and well-rounded application for creating and testing Regex expressions for the need of a .NET developer.

Visual Studio extension - Regex Editor

This is a Visual Studio 2022 extension. Here are screenshots:

Main panel

Regex 7 free test tools

Code generator panel

Regex 7 free test tools

Please notice the following,

It looks very tidy, and some will prefer such a tool integrated into Visual Studio.

Conclusion

It is always handy to have around good tools for testing Regex expressions. They are useful for those that create Regex expressions often or complicated ones. They are useful for those that create them once in a while and whose skills have diminished over time, so they need advanced tools to assist them and refresh their skills.

In our opinion, out of the presented tools, the best impressions were left by

  1. Website Regex101
  2. Expresso application

But, of course, everyone will have his preferences.