您现在的位置是:网站首页> 编程资料编程资料

asp下替换非数字为空的正则_正则表达式_

2023-05-25 267人已围观

简介 asp下替换非数字为空的正则_正则表达式_

function replacestr(str)
dim re
set re=new regexp
re.ignorecase=true
re.global=true
re.pattern="\D"
str=re.replace(str,"")
replacestr=str
set re=nothing
end function

-六神源码网