Skip to main content

tkit-regex-tools

tkit regex tools 正则合集

pip install tkitRegex

# or
pip install git+https://github.com/napoler/tkit-regex-tools
from tkitRegex import regex_plus
regexs=[
    {
        "regex_key":'follow_characters',
        "replace":''
    },
    {
        "regex_key":'email',
        "replace":'your_email_address'
    }
]
text="Here is our guide on how to 123@qq.com give 123@qq.com CBD oil to dogs. Follow us on Twitter @TriBeCa and @TriBeCaDog. Follow us on Facebook @TriBeCa and @TriBeCaDog."
print("replace:")
out=regex_plus(text,regexs=regexs,test=True,do="replace")
print(out)
print("match:")
for it in regex_plus(text,regexs=regexs,test=True,do="match"):
    print(it)

示例使用: https://github.com/napoler/tkit-regex-tools/blob/main/test.ipynb

推荐文档

https://github.com/manoss96/pregex https://github.com/napoler/pregex https://pregex.rtfd.io/

Download files

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

Source Distribution

tkitRegex-0.0.0.116625433.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

tkitRegex-0.0.0.116625433-py2.py3-none-any.whl (22.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tkitRegex-0.0.0.116625433.tar.gz.

File metadata

  • Download URL: tkitRegex-0.0.0.116625433.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for tkitRegex-0.0.0.116625433.tar.gz
Algorithm Hash digest
SHA256 d32ced0a0b31a9d4b5b6718bf7dba8d99f80fdc1994286c257118a5031cd4007
MD5 3703d003a44fda28464062782075cac9
BLAKE2b-256 b06ce689867d24f79db3c6d1e28b2f2abdeec537410b3f56bac81a110abe7693

See more details on using hashes here.

File details

Details for the file tkitRegex-0.0.0.116625433-py2.py3-none-any.whl.

File metadata

  • Download URL: tkitRegex-0.0.0.116625433-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for tkitRegex-0.0.0.116625433-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 551eb2fd218e99b776eb213fba7659d3cd1ef087b160555973f1ebcb10609e81
MD5 f23cb105974411dcb4460ab8081ff14f
BLAKE2b-256 d7fc87b90b5980a19cd64211d2173312caa74748e02cea83db4368b98892d744

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.0.116625433 This release

2 files

Supported by

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