Skip to main content

中文正则表达式

Project description

简述

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

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

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

设想的简单演示:

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

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

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

渊源

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chinese_regular_expression-0.0.2.tar.gz (78.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chinese_regular_expression-0.0.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file chinese_regular_expression-0.0.2.tar.gz.

File metadata

File hashes

Hashes for chinese_regular_expression-0.0.2.tar.gz
Algorithm Hash digest
SHA256 da58360115ddb2ea23b52e628eb8e7d62f8d5043078874b2b83f50d45481552a
MD5 fb207ec7f57da64616bea03eb0b454d4
BLAKE2b-256 a8a3ae60ddee3b2af7a4108d4b906a8445e17a2b25c90feaebd40fc21d6cb44f

See more details on using hashes here.

File details

Details for the file chinese_regular_expression-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chinese_regular_expression-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f11623a2612c35a4b593951de8bb6d375d2e785a8b237c3bb5229913fb2e577
MD5 02cc6a92a0db850c223925997c66a71a
BLAKE2b-256 e5aaeedc670c4bee04706f81f228a2fcc858079098ff98e6d4a1640cc5d744c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page