Metadata-Version: 2.1
Name: mrex
Version: 0.0.2
Summary: Magic Regex
Author-email: Roi Gabay <roigby@gmail.com>
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Dist: pytest ; extra == "test"
Project-URL: Bug Tracker, https://github.com/gabay/mrex/issues
Project-URL: Home, https://github.com/gabay/mrex
Provides-Extra: test

# Magic Regex

Read and write regular expressions easily.

```python
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

```bash
pip install mrex
```

# Thanks

Project influenced by [magic-regexp](https://github.com/danielroe/magic-regexp).

