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/

Metadata

Release files for tkitRegex 0.0.0.116626169

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tkitRegex 0.0.0.116626169
File Size Uploaded Provenance Actions
tkitRegex-0.0.0.116626169.tar.gz 22.3 kB Without provenance Details for tkitRegex-0.0.0.116626169.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tkitRegex 0.0.0.116626169
File Interpreter ABI Platform Actions
tkitRegex-0.0.0.116626169-py2.py3-none-any.whl Python 3, Python 2 none any Details for tkitRegex-0.0.0.116626169-py2.py3-none-any.whl

Total release size: 45.6 kB

Release files / tkitRegex-0.0.0.116626169.tar.gz

Download URL tkitRegex-0.0.0.116626169.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
455206a85f7a0cbaa9ee8da59daa6bf7317982c76e42a05e9269696f9dd35a66
BLAKE2b-256 checksum
How to use checksums
0efe858ea649cbd8c8b1d628c111725386b1ec64463e84e95d106d800de6b868
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / tkitRegex-0.0.0.116626169-py2.py3-none-any.whl

Download URL tkitRegex-0.0.0.116626169-py2.py3-none-any.whl
Size 23.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8493ee05b85e415e06b2821f1b9f20015649bd022e293af33c491d15e1fff298
BLAKE2b-256 checksum
How to use checksums
89c78137bf01449aa028913c0387f126c1548f559542cf28bb3a506765649625
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for tkitRegex 0.0.0.116626169

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page