解决方案 »
- 关于模拟汉字输出的问题
- vb程序WebBrowser控件打开网页,怎么让网页统计检测为我指定的ip!
- 打包安装问题
- 我现在都有点佩服我自己了。
- 想要等待一个进程结素后再继续下面的代码,如何实现!
- 调用winrar打开名为“3.rar”的压缩文件夹里面的一个名为“1”的文件夹的界面的代码如何写?
- 如何用API函数向注册表写入含有"AA"字符的二进制值,我试过了一些模块,但总是出现“溢出”错误,而写入其它字符就无事,怎么办?
- 如何实现报表输出?
- 高分求教如何用VB实现端口输入输出功能
- 为何数据库不能使用
- VBS中CreateTextFiles失败返回值可能是什么?
- label not defined????????????????????????
Private Sub TestReg()
Dim strData As String
Dim reg As Object
Dim matchs As Object, match As Object
Dim s$ strData = "guaranteed整体短线索马里>, wh红线ile reaffirming(美国) its goal of developing nuclear power as a clean energy source." & vbCrLf & _
"Hu extends condolences to Myanmar" & vbCrLf & _
"Chinese Pr粗线esident Hu Jintao has delivered a message of condolences (利比亚)to his Myanmar counterpart U Thein Sein over the losses 整体阳线东部>of life and property inflicted by a strong earthquake." & vbCrLf & _
"UnionPay network works well: chairman" & vbCrLf & _
"China doe粗线sn't 整体长线us> need another interbank network for credit cards, said the board chairman of China UnionPay Co Ltd - the country's only credit card network - in re黑线sponse to an anti-monopoly request from the United States to the World Trade Organization (WTO)." Set reg = CreateObject("vbscript.regExp")
reg.Global = True
reg.IgnoreCase = True
reg.MultiLine = True
reg.Pattern = "整体.线(.+?)>|\((.+?)\)"
Set matchs = reg.Execute(strData)
For Each match In matchs
s = s & match.SubMatches(0) & match.SubMatches(1)
Next
MsgBox s
End Sub