asp如何过滤字符串中的非汉字?
str="你 d他t我。。"
过滤后, str="你他我"
请教!谢谢。 ASP 汉字? 过滤
[解决办法]
dim str
str="你 d他t我。。"
set rx=new regexp
rx.global=true
rx.IgnoreCase=true
rx.Pattern="[^\u4E00-\u9FA5]"
str=rx.Replace(str,"")
set rx=nothing
response.write str