Skip to content

peter-hunt/regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regex

An attempt of recreating Regex with Python

Installation

Use git to install Regex. Go to the directory you want to download Regex in, and enter the following command:

git clone /~https://github.com/peter-hunt/regex.git

Or use pip.

pip install git+/~https://github.com/peter-hunt/regex.git

This project requires Python 3.8+

Usage

import regex
print(regex.match(r'\w+ \d+?', 'peter_hunt 123'))

Known Issues

Removed param start and end from Pattern._match cause it kept bugging. It won't be friendly to groups later on.

License

MIT

About

An attempt of recreating Regex with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages