Magic Regex
Project description
Magic Regex
Read and write regular expressions easily.
import mrex
id_re = mrex.exactly('id: ').and_(rex.digits.repeat(5).group_as('id'))
print(id_re.find('id: 12345').group('id')) # prints '12345'
Installation
pip install mrex
Thanks
Project influenced by magic-regexp.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mrex-0.0.2.tar.gz
(4.8 kB
view hashes)
Built Distribution
mrex-0.0.2-py3-none-any.whl
(3.4 kB
view hashes)