asp正则表达式提取字符串中所有的数字

Function RegExpTest(strng) '以数组返回 i = 0 Set regEx = New RegExp regEx.Pattern = "(/d+)" '"[0-9]" regEx.IgnoreCase = True regEx.Global = True Set Matches = regEx.Execute(strng) For Each Match in Matches RetStr = RetStr &"<br>"& Match.Value '输出提取出来的数字 i = i + 1 Next RegExpTest = RetStr End Function

 

http://www.lao8.org/html/8/2009-8-21/2009821141220.html

你可能感兴趣的:(正则表达式,function,regex,asp,each)