手机
当前位置:查字典教程网 >编程开发 >正则表达式 >asp下替换非数字为空的正则
asp下替换非数字为空的正则
摘要:functionreplacestr(str)dimresetre=newregexpre.ignorecase=truere.global...

functionreplacestr(str)

dimre

setre=newregexp

re.ignorecase=true

re.global=true

re.pattern="D"

str=re.replace(str,"")

replacestr=str

setre=nothing

endfunction

【asp下替换非数字为空的正则】相关文章:

如何快速学习正则表达式

临时记录:一个正则

JS获取网址中指定值的正则函数

检测八位数字是否为有效日期的正则

javascript下一个还原html代码的正则

vbs:把一段文字中指定字符颜色变成红色的正则

一个非常不错的一个正则练习JS版

php中常用的正则表达式的介绍及应用实例代码

写出高效率的正则表达式技巧总结

正则表达式链接替换函数的技巧

精品推荐
分类导航