Skip to content

A library that provides regex patterns. If you hate to write regular expressions, then expynent can help you.

License

Notifications You must be signed in to change notification settings

Derik117/expynent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov PyPI version

expynent is a tiny library that provides RegEx patterns. This can be useful if you don't want to write regular expression manually.

Docs

Here you can read about basics of expynent.

Installation

~ git clone https://github.com/lk-geimfari/expynent.git
➜  ~ cd expynent/
➜  ~ python setup.py install

or

~  pip install expynent

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 MAC_ADDRESS

mac = input('Enter MAC address : ')

if MAC_ADDRESS.match(mac):
    print('valid')
else:
    print('invalid')

Contributing

Your contributions are always welcome! Please take a look at the contribution guidelines first.

Attention

This is an experimental project and it's mean that we do not guarantee stability.

Licence

BSD 3-Clause License

About

A library that provides regex patterns. If you hate to write regular expressions, then expynent can help you.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%