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+
import regex
print(regex.match(r'\w+ \d+?', 'peter_hunt 123'))
Removed param start
and end
from Pattern._match
cause it kept bugging. It won't be friendly to groups later on.