Created by: lk-geimfari
expynent is a tinny library that provides RegEx patterns. This can be useful if you don't want to write regular expression manually.
Usage
Just import the pattern that you want:
import re
import expynent.patterns as expas
if re.match(expas.ZIP_CODE['RU'], '43134'):
print('match')
else:
print('not match')
# Output: 'not match'
also you can use compiled patterns:
from expynent.compiled import username
u = input('Enter username: ')
if username.match(u):
print('valid')
else:
print('invalid')