asp正则匹配

[复制链接]
查看11 | 回复2 | 2012-3-9 13:02:41 | 显示全部楼层 |阅读模式
Rem==========模糊替换函数==========Function ReplaceTest(tempStr, patrn, replStr)Dim regEx ' 建立变量。Set regEx = New RegExp ' 建立正则表达式。regEx.Pattern = patrn ' 设置模式。regEx.IgnoreCase = True ' 忽略大小写。 regEx.Global = True'设置为搜索ReplaceTest = regEx.Replace(tempStr, replStr) ' 作替换。 set regEx=nothing End Function调用方法:result=R...
回复

使用道具 举报

千问 | 2012-3-9 13:02:41 | 显示全部楼层
用字符串截取吧,搜索到com,把com前面的都去掉...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行