Skip to content

πŸ€– Regex Interpreter: Unleash the Magic of Regex with * and + Support! πŸ§™β€β™‚οΈ Supercharge Your Pattern Matching! Simplify Complex Expressions Effortlessly! πŸ”πŸš€

License

Notifications You must be signed in to change notification settings

Meet-forever/Regex_Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Regex Interpreter

Project idea and instruction taken from: PLC-Project-1

This project uses an idea from the theory of computation. First, the user gives grammar in the form of a regular expression. Then, the parser recursively builds DFA (Deterministic Finite Automaton) from the given regular expression. Now, the user can provide an input in the form of a string to check whether a string follows the regular expression. It checks that by running the DFA against the given input, and if DFA reaches the final state, the given input follows regular expression; otherwise, the given input is not valid.

Supported operations:

(*) = Match zero or more operator
(+) = Match one or more operator

Sample Run:

REGEX: (a+b)*abc*;
        INPUT STRING: ab;
        MATCH
        INPUT STRING: abab;
        MATCH
        INPUT STRING: abc;
        MATCH
        INPUT STRING: abcd;
        NO MATCH: Invalid input character
        INPUT STRING: exit;
REGEX: exit;

About

πŸ€– Regex Interpreter: Unleash the Magic of Regex with * and + Support! πŸ§™β€β™‚οΈ Supercharge Your Pattern Matching! Simplify Complex Expressions Effortlessly! πŸ”πŸš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages