在本文里,我们主要介绍子模式(subpatterns),逆向引用(Back references)和量词(quantifiers),其中重点介绍对这些概念的一些扩展应用,例如子模式中的非捕获子模式,量词匹配时的greedy与ungreedy。
基于60个网页-相关网页
When using multiple back references, a regular expression can quickly become confusing and hard to understand.
当要使用多个反向引用时,正则表达式很快就会变得令人迷惑而且很难去理解。
The escape operator may introduce an operator for example: back references, or a word operator.
转义符可以引入一个操作符,如反引用、词操作符。
This means "match a subpattern, but don't include the match in the back-references." So let's examine the subexpression
这表示“查找子模式的匹配字符串,但不包括反向引用中的匹配结果”。
应用推荐