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

编程学习 2021-07-05 10:07www.dzhlxh.cn编程入门
最近用到将字符串替换为空的函数,上网搜了一下这个简单的东西,网上没有,于是自己写个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

Copyright © 2016-2025 www.dzhlxh.cn 金源码 版权所有 Power by

网站模板下载|网络推广|微博营销|seo优化|视频营销|网络营销|微信营销|网站建设|织梦模板|小程序模板