在VB中如何使用正则表达式!
原代码是这样的:
Private Function REP_STR(S)
Dim re, rv
Set re = New Regexp
re.Pattern = "[\?@]"
re.Global = True
re.IgnoreCase = True
re.MultiLine = True
rv = re.Replace(S, [\?@])
REP_STR = rv
Set re = Nothing
End Function
第三行是建立规范表达式, 但在编译成DLL时通不过.不知道要引用什么东西. 在线等待!