Regexes
Easy regex finder for Python
## installation
~$ pip install Regexes
Usage:
- For extracting all possible info from string
from Regexes import Regexes
string = """
Hello My name is Berkay and this is my project
bekxxx3@gmail.com, beskilo@doner.com,
05323450002,
05430000778,
pythoncibeko@bekocanholding.com
"""
ret = Regexes(data=string).find_reg()
print(ret)
# ---------------------------
# {'btc_addresses': [],
# 'credit_cards': [],
# 'dates': [],
# 'emails': ['bekxxx3@gmail.com',
# 'beskilo@doner.com',
# 'pythoncibeko@bekocanholding.com'],
# 'hex_colors': [],
# 'ips': [],
# 'ipv6s': [],
# 'links': ['gmail.com', 'doner.com', 'bekocanholding.com'],
# 'phones': ['05323450002', '05430000778'],
# 'phones_with_exts': [],
# 'po_boxes': [],
# 'prices': [],
# 'ssn_number': [],
# 'street_addresses': [],
# 'times': [],
# 'zip_codes': []}
- For specific type of info
from Regexes import Regexes
string = """
Hello My name is Berkay and this is my project
bekxxx3@gmail.com, beskilo@doner.com,
05323450002,
05430000778,
pythoncibeko@bekocanholding.com
"""
ret = Regexes(data=string, dtype="emails").find_reg() # * Just add dtype arg
print(ret)
# ---------------------------
# {'emails': ['bekxxx3@gmail.com',
# 'beskilo@doner.com',
# 'pythoncibeko@bekocanholding.com']}
Credit: CommonRegex
Metadata
Release files for Regexes 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Regexes-0.0.3.tar.gz | 17.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Regexes-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.3 kB
Release files / Regexes-0.0.3.tar.gz
| Download URL | Regexes-0.0.3.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d682e51ab65974b3fab3f7b0c1097d1ec4e28e620de2e8ddf6d405724cc773a
|
|
BLAKE2b-256 checksum How to use checksums |
7c12a011e03d0160430d1da096d7238821f950f79a773163e7982bb689cb5dde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / Regexes-0.0.3-py3-none-any.whl
| Download URL | Regexes-0.0.3-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d73c9eaee9c24a9543134f97a09df0d5097999de5a5eaa4cce9461ea696ba34d
|
|
BLAKE2b-256 checksum How to use checksums |
e539b5e0761dcddf0e56aacf0d06c0c196cace021bd0f17287726a49aae18aac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|