Terry toolkit tkitRegex 正则合集 ,
Project description
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/
Project details
Release history Release notifications | RSS feed
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.116625426.tar.gz
(21.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tkitRegex-0.0.0.116625426.tar.gz.
File metadata
- Download URL: tkitRegex-0.0.0.116625426.tar.gz
- Upload date:
- Size: 21.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
479d434b2a272697f71199f9338a4eeebea798e71e28c68c353cdab235795968
|
|
| MD5 |
41601e8e95b3eb380e679cc7ab340d38
|
|
| BLAKE2b-256 |
4722efc4f1c3828c7e8396af5802d3a0a214be555c93764acb103ca4fec8fde4
|
File details
Details for the file tkitRegex-0.0.0.116625426-py2.py3-none-any.whl.
File metadata
- Download URL: tkitRegex-0.0.0.116625426-py2.py3-none-any.whl
- Upload date:
- Size: 22.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f02f4a4d82d36ae032f0e439d201a7160a2a8e2b567025830409fe2a8eb71739
|
|
| MD5 |
58c56693b77ad235114f16737e04b8aa
|
|
| BLAKE2b-256 |
1e601227b7fe3921a0b2332c2b02775adb225c4c863578b2bb3390e386bc080d
|