Skip to main content

简述

正则表达式(regular expression)读写不易,此 API 尝试改进。

现在处于调研与规划中,相关文档编写中:

  • 功能
  • 设计,包括 API 细节与示例
  • 测试:$ pytest

设想的简单演示:

# 对应 r'\$?[^\\\)]'
序列("$").可无().不是(反斜杠, 右小括号).表达()

# r'(\")((?<!\\)\\\1|.)*?\1'
分段(双引号)
  .分段(
    任一(
      序列(反斜杠, 引用分段(1)).前面不是(反斜杠),
      序列(非换行字符)
    )
  ).若干().不贪()
  .引用分段(1)

如各位有“如何写 XXX 这样的正则表达式”之类的问题,欢迎提 issue。普遍出现的需求将纳入设计与之后的测试。

渊源

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)

Source distribution for chinese-regular-expression 0.0.2
File Size Uploaded
chinese_regular_expression-0.0.2.tar.gz 78.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chinese-regular-expression 0.0.2
File Interpreter ABI Platform
chinese_regular_expression-0.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

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