mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-09-08 22:55:59 -04:00
new ch translation for word non capturing group
This commit is contained in:
parent
366bc0da08
commit
4c48458c42
@ -348,7 +348,7 @@
|
||||
|
||||
## 4. 前后关联约束(前后预查)
|
||||
|
||||
前置约束和后置约束都属于**非捕获簇**(用于匹配不在匹配列表中的格式).
|
||||
前置约束和后置约束都属于**非捕获组**(用于匹配不在匹配列表中的格式).
|
||||
前置约束用于判断所匹配的格式是否在另一个确定的格式之后.
|
||||
|
||||
例如, 我们想要获得所有跟在 `$` 符号后的数字, 我们可以使用正向向后约束 `(?<=\$)[0-9\.]*`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user