Program for testing regular expressions using several engines available in C++.
Currently, you can test regular expressions using the C++ standard library (std).
In the near future you will be able to test regular expressions with engines:
The program itself uses the Qt 6.x library as a GUI.
I created a program on macOS using CMake.
- Qt - to install on macOS, run the command
brew install qt6
- PCRE2 - to install on macOS, run the command
brew install pcre2
- fmt - to install on macOS, run the command
brew install fmt
If someone does not have (or does not want to have) the PCRE2 library on their computer, they should modify the CMakeLists.txt file.
In line 2 of this file, change ON to OFF. Currently it is set(PCRE2 ON)
. Or comment out this line.
The program allows you to test several patterns with several source texts at the same time (every pattern with every source text).
Of course, we use this opportunity if it makes sense.
Patterns and sources can be saved to a file on disk and read from them (see app menu).
- open a terminal and navigate to the directory of your choice
- clone the program from github
cd ccregex
go to ccregex directory,mkdir build
cd build
cmake ..
cmake --build .
- (if you would like to build from beginning, remove previous content:
cmake --fresh .
and go to point 7.) ./ccregex
(run)