asp下替换非数字为空的正则
程序员文章站
2022-05-04 19:10:37
function replacestr(str) dim re set re=new regexp re.ignorecase=tr...
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
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
上一篇: 重写与重载的区别
下一篇: 下奶汤菜谱大全有哪些