有字符串:[4,7]>0 and [1,4]<1 and [7,8]<>"" and ([5,6]=0 or[3,4]>2)[]的个数可能会有上万个,用最高的办法把[]和中的内容转成1,[]中的内容不用管
最后的结果:1>0 and 1<1 and 1<>"" and (=0 ro 1>2)
--------
www.vicmiao.com
努力就有美好时光!
最后的结果:1>0 and 1<1 and 1<>"" and (=0 ro 1>2)
--------
www.vicmiao.com
努力就有美好时光!
解决方案 »
- combobox 存储显示问题?急~~~~
- VB如何动态加载第三方的DLL控件?
- activerreport报表的预览时看见的那条红线是做什么用的?
- 请教一个ADO编程问题
- ActiveX控件DCube的使用方法?
- 高分求解:请问如何实现断点下传功能???
- 让一个窗体既能有最小化按钮又不能通过鼠标改变大小
- VB中利用控件MSComm怎样向串口发送一个空格呀?
- 怎么样在vb的About窗口中加入email:功能??????请教!谢谢!
- 如何让自己的软件像photonshop一样,随时可以用新的插件,像winamp一样可以用新的skin?
- 怎样在程序界面上放置浏览器
- vb中winsock数据丢包的问题,分少,请大家见谅
www.vicmiao.com
努力就有美好时光!
Dim Reg As New RegExp
Dim strSource As String, strReplace As String
Dim strPattern As String
strSource = "[4,7]>0 and [1,4]<1 and [7,8]<>1 and ([5,6]=0 or[3,4]>2)"strReplace = "1"
strPattern = "\x5b\d,\d\x5d"
Reg.Pattern = strPatternWhile Reg.Test(strSource) = True
strSource = Reg.Replace(strSource, strReplace)
WendMsgBox strSource End Sub
www.vicmiao.com
努力就有美好时光!