How to remove all characters between two brackets?
来源:互联网 发布:java 特种兵 pdf 编辑:程序博客网 时间:2024/05/11 06:04
How to remove all characters between two brackets?
Such as "12345 (rtetnj) dsfd (fddsgd) dsf "----> "12345 dsfd dsf "
Use regexp syntaxes ,it's too simple .
Function StringWithoutBrackets(ByVal s As String) As String
With CreateObject("VBSCRIPT.REGEXP")
.Global = True
.Pattern = "[(][^)]*[)]"
StringWithoutBrackets = .Replace(s, "")
End With
End Function
With CreateObject("VBSCRIPT.REGEXP")
.Global = True
.Pattern = "[(][^)]*[)]"
StringWithoutBrackets = .Replace(s, "")
End With
End Function
Sub test()
MsgBox StringWithoutBrackets("12345 (rtetnj) dsfd (fddsgd) dsf ")
End Sub
- How to remove all characters between two brackets?
- How to remove space or newline characters from a string?
- How to move between two or more forms?
- How to move an OIM database between two OIM instances
- How-to: transfer hbase data between two hadoop cluster
- how to remove all subviews from my scrollview
- How to capture the one-to-one dependency between two attributes in one relation?
- How to copy all view private files and Derived objects between views
- How to copy all view private files and Derived objects between views
- C# Tips: How to remove white-space characters inside a string?
- How To Get Min-Cost Between two points in graph (Dijkstra’s algorithm)
- How To Set Up A Serial Port Between Two Virtual Machines In VirtualBox
- How should 50 red and 50 blue marbles be distributed between two jars so as to maximize the chance o
- How to remove a replica.
- How to remove ActiveX Controller
- How to remove OLAP组件?
- How to remove GlusterFS Volumes
- git get all different files between two revisions
- 哈夫曼树的实现
- 工作感悟
- 使用VMWare安装SAID3时的几个注意要点
- 与方向无关的Bresenham算法
- 一亿亿以下的阿拉伯数字转中文的自定义函数
- How to remove all characters between two brackets?
- 提高工作效率
- 领会RailsConf 2007
- 为什么没有Rails Inc?
- 多核的歇斯底里和线程的困惑
- RailsConf Europe 2007的注册开放了!
- 谚语
- VSFTP—安全与效能兼备的ftp 服务器
- redhat linux 9.0 VSFTP配置大权(转载)