Skip to content

About

The engine typically utilizes algorithms such as finite automata, backtracking, or other specialized techniques to efficiently process regular expressions. It parses the input string character by character, comparing it against the pattern defined by the regular expression to determine matches or patterns of interest.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Regex Engine

Description

This project aims to implement a basic regex engine in Python. Regular expressions (regex) are a powerful tool for pattern matching and text manipulation. This engine will provide a simplified version of regex functionality, focusing on core concepts such as character matching, wildcards, and repetition.

Features

  • Character matching: Match specific characters in a string.
  • Wildcards: Match any character.
  • Repetition: Match characters or patterns multiple times using quantifiers like '*', '+', and '?'.
  • Alternation: Match either/or patterns.

Usage

  1. Clone the repository:
    git clone https://github.com/yourusername/regex-engine.git
    

Navigate to the project directory:

cd regex-engine

Run the regex_engine.py script with Python:

python3 regex_engine.py

Contributing

Contributions are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request. License

This project is licensed under the MIT License. See the LICENSE file for details.

About

The engine typically utilizes algorithms such as finite automata, backtracking, or other specialized techniques to efficiently process regular expressions. It parses the input string character by character, comparing it against the pattern defined by the regular expression to determine matches or patterns of interest.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages