首页 > Web开发 > 详细

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

时间:2016-02-06 19:43:04      阅读:265      评论:0      收藏:0      [点我收藏+]
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

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

原文:http://www.jb51.net/article/13232.htm

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!