在 instr 中如何使用 正则表达式
若不能在
Function RegExpTest(patrn, strng)
Dim regEx
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = True
RegExpTest = regEx.Execute(strng)
End Function
中,如何指定 string 为“[\d]” 或其他正则表达式。
请指教。
若不能在
Function RegExpTest(patrn, strng)
Dim regEx
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = True
RegExpTest = regEx.Execute(strng)
End Function
中,如何指定 string 为“[\d]” 或其他正则表达式。
请指教。
应为 “strng 为“[\d]” 或其他正则表达式”