下表列出的是杂项结构。
结构 | 定义 | 例子 |
---|---|---|
(?imnsx-imnsx) | 设置或禁用选项,例如模式中间的大小写敏感选项。 | \bA(?i)b\w+\b matches "ABA", "Able" in "ABA Able Act" |
(?#comment) | 线内注释。注释被包含在闭合的圆括号中。 | \bA(?#Matches words starting with A)\w+\b |
# [to end of line] | X模式注释。注释开始于没有编码的“#”,并持续到该行的结束。 | (?x)\bA\w+\b#Matches words starting with A |
转载本站内容时,请务必注明来自W3xue,违者必究。