You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

chinese-regular-expression

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chinese-regular-expression

中文正则表达式

0.0.2
pipPyPI
Maintainers
1

简述

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

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

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

设想的简单演示:

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

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

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

渊源

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts