remagic 0.1.1

Creator: bradpython12

Last updated:

0 purchases

remagic 0.1.1 Image
remagic 0.1.1 Images

Languages

Categories

Add to Cart

Description:

remagic 0.1.1

remagic
Working with regex made easier!
Partly inspired from magic-regexp for Node
from remagic import *

pattern1 = create(DIGIT) # matches any digit

pattern2 = char_in("aeiou") # matches any char in "aeiou"

pattern3 = ~pattern2 # negates the pattern in pattern2,

# i.e. match everything except characters in "aeiou"

pattern4 = pattern1 + pattern3

# finally compile, use standard flags as optional argument

R = pattern4.compile()

# use the regex later

Installation
Install from PyPI:
pip install remagic
Work in Progress!
Documentation
TODO: docs
Known bugs

improper behaviour with any_of

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.