VB.Net 正则表达式 - 杂项结构

以下是各种杂项结构 −

构造 定义 示例
(?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

❮ vb.net_regular_expressions.html