简述
正则表达式(regular expression)读写不易,此 API 尝试改进。
现在处于调研与规划中,相关文档编写中:
设想的简单演示:
# 对应 r'\$?[^\\\)]'
序列("$").可无().不是(反斜杠, 右小括号).表达()
# r'(\")((?<!\\)\\\1|.)*?\1'
分段(双引号)
.分段(
任一(
序列(反斜杠, 引用分段(1)).前面不是(反斜杠),
序列(非换行字符)
)
).若干().不贪()
.引用分段(1)
如各位有“如何写 XXX 这样的正则表达式”之类的问题,欢迎提 issue。普遍出现的需求将纳入设计与之后的测试。
渊源
- 2020-12-03 正则表达式 API 技术验证与设计细化
- 2020-11-30 用中文 API 让正则表达式更易读写?
Metadata
Release files for chinese-regular-expression 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chinese_regular_expression-0.0.2.tar.gz | 78.1 kB | Without provenance | Details for chinese_regular_expression-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chinese_regular_expression-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for chinese_regular_expression-0.0.2-py3-none-any.whl |
Total release size: 93.8 kB
Release files / chinese_regular_expression-0.0.2.tar.gz
| Download URL | chinese_regular_expression-0.0.2.tar.gz |
|---|---|
| Size | 78.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da58360115ddb2ea23b52e628eb8e7d62f8d5043078874b2b83f50d45481552a
|
|
BLAKE2b-256 checksum How to use checksums |
a8a3ae60ddee3b2af7a4108d4b906a8445e17a2b25c90feaebd40fc21d6cb44f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.8
|
Release files / chinese_regular_expression-0.0.2-py3-none-any.whl
| Download URL | chinese_regular_expression-0.0.2-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f11623a2612c35a4b593951de8bb6d375d2e785a8b237c3bb5229913fb2e577
|
|
BLAKE2b-256 checksum How to use checksums |
e5aaeedc670c4bee04706f81f228a2fcc858079098ff98e6d4a1640cc5d744c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.8.8
|
Security for chinese-regular-expression 0.0.2
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.