<script language="vbscript">
Public Function GetID(str)
Dim TStr,re
TStr=str
Set re=new RegExp
re.Pattern="\D"
re.IgnoreCase =True
re.Global=True
TStr=re.Replace(TStr,"")
Set Re=Nothing
GetID=TStr
End Function
alert GetID("1111asd11")
</script>
从网上搜了一段代码,是用来去除非数字的,有点看不懂,请高手给注释一下,谢谢!