Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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)* aaaa@aaa...aaa Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* aaaa@a.a.a.a Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* aaaa@.a.a.a Match
(a|.|-)(a|.|-)*@((a*.*a)|a)((a*.*a)|a)* aaaa@.....a 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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages