asp下替换非数字为空的正则
发布时间:2016-12-29 来源:查字典编辑
摘要: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