Skip to main content

Common Regexes via Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Regexes-0.0.3.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Regexes-0.0.3-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file Regexes-0.0.3.tar.gz.

File metadata

  • Download URL: Regexes-0.0.3.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for Regexes-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3d682e51ab65974b3fab3f7b0c1097d1ec4e28e620de2e8ddf6d405724cc773a
MD5 883ab7293fdbd5cf69fd2c564a6d14af
BLAKE2b-256 7c12a011e03d0160430d1da096d7238821f950f79a773163e7982bb689cb5dde

See more details on using hashes here.

File details

Details for the file Regexes-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: Regexes-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for Regexes-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d73c9eaee9c24a9543134f97a09df0d5097999de5a5eaa4cce9461ea696ba34d
MD5 44415fe7bb69a5bd7d6ac3e7ca6de69c
BLAKE2b-256 e539b5e0761dcddf0e56aacf0d06c0c196cace021bd0f17287726a49aae18aac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page