中文正则表达式
Project description
简述
正则表达式(regular expression)读写不易,此 API 尝试改进。
现在处于调研与规划中,相关文档编写中:
设想的简单演示:
# 对应 r'\$?[^\\\)]'
序列("$").可无().不是(反斜杠, 右小括号).表达()
# r'(\")((?<!\\)\\\1|.)*?\1'
分段(双引号)
.分段(
任一(
序列(反斜杠, 引用分段(1)).前面不是(反斜杠),
序列(非换行字符)
)
).若干().不贪()
.引用分段(1)
如各位有“如何写 XXX 这样的正则表达式”之类的问题,欢迎提 issue。普遍出现的需求将纳入设计与之后的测试。
渊源
- 2020-12-03 正则表达式 API 技术验证与设计细化
- 2020-11-30 用中文 API 让正则表达式更易读写?
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
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 chinese_regular_expression-0.0.2.tar.gz.
File metadata
- Download URL: chinese_regular_expression-0.0.2.tar.gz
- Upload date:
- Size: 78.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da58360115ddb2ea23b52e628eb8e7d62f8d5043078874b2b83f50d45481552a
|
|
| MD5 |
fb207ec7f57da64616bea03eb0b454d4
|
|
| BLAKE2b-256 |
a8a3ae60ddee3b2af7a4108d4b906a8445e17a2b25c90feaebd40fc21d6cb44f
|
File details
Details for the file chinese_regular_expression-0.0.2-py3-none-any.whl.
File metadata
- Download URL: chinese_regular_expression-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f11623a2612c35a4b593951de8bb6d375d2e785a8b237c3bb5229913fb2e577
|
|
| MD5 |
02cc6a92a0db850c223925997c66a71a
|
|
| BLAKE2b-256 |
e5aaeedc670c4bee04706f81f228a2fcc858079098ff98e6d4a1640cc5d744c1
|