Thanks to visit codestin.com
Credit goes to github.com

Skip to content

xirzo/RegexMatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This program was written to easily check answers for my Discrete math homework.

Build

git clone https://github.com/xirzo/regexmatcher.git
cd regexmatcher
cmake -B build/
cmake --build build/ 
./build/bin/regex

Now you may just edit the bin/main.cpp with your regex and recompile it.

Example

Here’s a sample regex used in the program:

(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)*

Cases:

Regex Input Result
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* aaaa@aaaaaaa Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* [email protected] Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* [email protected] Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* [email protected] Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* [email protected] Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* aaaa@..... No Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* aaaa@aaaa.... No Match

About

Program that allows matching regular expressions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published