网站制作学习网经验与学习→正文:正则表达式匹配函数
字体:

正则表达式匹配函数

经验与学习 2008/9/10 10:25:54  点击:不统计



关键词:正则表达式匹配函数,如何使用正则表达式



Function isMatchString(str,reg)

dim matches,objregEx

set objregEx = new RegExp

objregEx.IgnoreCase = true

objregEx.Global = true

objregEx.Pattern = reg

set matches = objregEx.execute(str)

IF matches.count>0 Then

isMatchString = True

Else

isMatchString = False

End IF

End Function

·上一篇:asp防采集 >>    ·下一篇:手机解锁 >>
推荐文章
最新文章