Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piotrpsz/ccregex
Regular expression tester. std/qt.pcre2
https://github.com/piotrpsz/ccregex
cpp20 pcre2 qt6 qt6-gui regular-expression
Last synced: about 2 months ago
JSON representation
Regular expression tester. std/qt.pcre2
- Host: GitHub
- URL: https://github.com/piotrpsz/ccregex
- Owner: piotrpsz
- License: mit
- Created: 2024-03-14T16:55:33.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-04T13:16:31.000Z (9 months ago)
- Last Synced: 2024-04-04T14:34:46.345Z (9 months ago)
- Topics: cpp20, pcre2, qt6, qt6-gui, regular-expression
- Language: C++
- Homepage:
- Size: 946 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ccregex - regular expressions in C++.
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.
### You need to download three libraries (if you don't have them yet):
1. Qt - to install on macOS, run the command `brew install qt6`
2. PCRE2 - to install on macOS, run the command `brew install pcre2`
3. 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).
### How to build the program
1. open a terminal and navigate to the directory of your choice
2. clone the program from github
3. `cd ccregex` go to ccregex directory,
4. `mkdir build`
5. `cd build`
6. `cmake ..`
7. `cmake --build .`
8. (if you would like to build from beginning, remove previous content: `cmake --fresh .` and go to point 7.)
9. `./ccregex` (run)
![Screenshot.png](img%2FScreenshot.png)
### Versions