Skip to content

new ch translation for example at section 4. Lookaround #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions translations/README-zh-simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@
前置约束和后置约束都属于**非捕获簇**(用于匹配不在匹配列表中的格式).
前置约束用于判断所匹配的格式是否在另一个确定的格式之后.

例如, 我们想要获得所有跟在 `$` 符号后的数字, 我们可以使用正向向后约束 `(?<=\$)[0-9\.]*`.
这个表达式匹配 `$` 开头, 之后跟着 `0,1,2,3,4,5,6,7,8,9,.` 这些字符可以出现大于等于 0 次.
例如, 我们想要从输入字符串中`$4.44 and $10.88`获得所有跟在 `$` 符号后的数字, 我们可以使用正向向后约束 `(?<=\$)[0-9\.]*`.
这个表达式匹配 `$` 开头, 之后跟着字符 `0,1,2,3,4,5,6,7,8,9,.` 这些字符可以出现大于等于 0 次.

前后关联约束如下:

Expand Down