Skip to main content

simpex is a Python library that simplifies the process of using regular expressions (regex).

Project description

Simpex

'simpex' stands for 'simple regex'

  • Simplifies the process of using regex in python

Usage:

Installation: pip install simpex

Custom:

  • Given a sample data set with minimum 2 values, it will return a regex pattern
  • Example:
import simpex

data_set = ['example@gmail.com',
            'test@yahoo.com',
            'admin@proton.me']

pattern = simpex(data_set)

Built-in:

  • Use built-in methods to get regex pattern
  • Check all available built-in methods in wiki
  • temp wiki:
patterns(pattern_name)
- pattern_name: str
- returns: regex pattern
- avaliable: `email`, `phone`, `url`, `ipv4`, `ipv6`, `mac`, `credit_card`, `date`, `hex_color`, `html_tag`
  • Example:
import simpex

pattern = simpex.patterns('email')

Custom / Built-in method will return the following pattern: ^[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-zA-Z0-9]*

<br>

API used

all require string type data

sr. API url required data type outputs
0 information (this only) none / null this info - str
1 https://saasbase.dev/tools/regex-generator english to regex (ai) - str single - str
2 https://www.autoregex.xyz english to regex (ai) - str single - str
3 https://regex.murfasa.com english to regex (ai) - str single - str
4 https://regex.ai multiple data set multiple - list

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

simpex-1.0.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

simpex-1.0.1-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file simpex-1.0.1.tar.gz.

File metadata

  • Download URL: simpex-1.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for simpex-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ba842665abe7e4db7fb476b9fd2146ff65db1cab862638a5aa8a8634ba2d943f
MD5 1402142f56b9decdd34f84056149ab6f
BLAKE2b-256 cbfc6d879d71e53eb6b2feade6d50352906a4d0ac74c0dd4eaedc379263e2960

See more details on using hashes here.

File details

Details for the file simpex-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: simpex-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for simpex-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74ec7a16df23c381f96a9b27c7563089c1dae531630682ba61fd442f15a4e350
MD5 f8124208247fac50e1026a9a24eb9354
BLAKE2b-256 60d9c3518ed4b5f7607b20f7dfd2011c09e11e9c158f738433ff1453bb1c816f

See more details on using hashes here.

Supported by

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