在 VB 中使用正则表达式需引用 Microsoft VBScript Regular Expressions 类型库,核心对象为 RegExp。通过设置 Pattern 属性定义匹配规则,Global 属性控制全局匹配,IgnoreCase 属性设置大小写。 阅读全文