Skip to content

Viorel/RegExpress

Repository files navigation

RegExpress

A tester for researching Regular Expression engines. Made in Visual Studio 2022 using C#, C++, WPF, .NET 9.

It includes the following Regular Expression engines:

  • Regex class from .NET 9.
  • Regex class from .NET Framework 4.8.
  • wregex class from C++ Standard Template Library (MSVC) and GCC.
  • Boost.Regex from Boost C++ Libraries 1.89.0.
  • PCRE2 Open Source Regex Library 10.46 (in C).
  • RE2 Library 2025-08-12 from Google (in C++).
  • Oniguruma Regular Expression Library 6.9.10 (in C++).
  • SubReg 2024-08-11 (in C).
  • JavaScript RegExp object in Microsoft Edge WebView2, V8 (via Node.js) 13.6.233.10, QuickJs 2025-04-26, SpiderMonkey C143.0 and JavaScriptCore (via Bun 1.2.21).
  • VBScript RegExp object used in Access, Excel, Word.
  • Hyperscan 5.4.2 from Intel (in C).
  • Chimera, a hybrid of Hyperscan 5.4.2 and PCRE 8.41 (in C).
  • ICU Regular Expressions 77.1 (in C++).
  • Rust 1.88.0 crates: regex 1.11.1, regex_lite 0.1.6, fancy_regex 0.16.1 and regress 0.10.3.
  • Java 24.0.1 (java.util.regex and com.google.re2j packages).
  • Python 3.13.6 (standard re module, third-party regex module).
  • D 2.111.0 (std.regex module).
  • Perl 5.40.2 (Strawberry Perl).
  • Fortran Forgex v4.6 module (Intel® Fortran Compiler 2025.1.0).
  • TRE 0.9.0 (in C).
  • tiny-regex-c 2022-06-21 (in C).

Sample:

Screenshot of RegExpress

Enter the pattern and text to textboxes. The results are updated automatically. The found matches are colourised.

Use the Options area to select and configure the Regular Expression engine. Press the “➕” button to open more tabs.

Currently the regular expressions are saved and loaded automatically, and a single instance can be started.

The program can be built using Visual Studio 2022 and .NET 9. The following Visual Studio workloads are required:

  • .NET desktop development.
  • Desktop development with C++.

Open the RegExpressWPFNET.slnx solution. Right-click the RegExpressWPFNET project in Solution Explorer and select “Set as Startup Project”. Select “Rebuild Solution” from BUILD menu. Then the program can be started.

The sources are written in C# and C++. The minimal sources of third-party regular expression libraries are included.

Details

  • Principal GIT branch: main.
  • Solution file: RegExpressWPFNET.slnx.
  • Startup project: RegExpressWPFNET.
  • Configurations: “Debug, Any CPU” or “Release, Any CPU”. The C++ projects use “x64”.
  • Operating Systems: Windows 11, Windows 10.

Some of engines require certain third-party library files, which were downloaded or compiled separately and included into main branch. (No additional installations required).

Note

After loading the solution file in Visual Studio, make sure that the RegExpressWPFNET project is set as Startup Project.

Note

To avoid compilation errors after acquiring new releases, use the “Rebuild Solution” command.


Feature Matrix

The various functionalities of regular expression engines are presented in the Excel file.

Feature Matrix

Download and open the file:




About

A multi-engine tester for Regular Expressions.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •