asp下替换非数字为空的正则

网络编程 发布日期:2024/10/11 浏览次数:1

正在浏览: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