日期:2014-05-18  浏览次数:20445 次

一个asp正则表达式的问题
function   GetAttribute(ByVal   strAttribute,   ByVal   strTag)
Dim   objRegEx,   Matches
Set   objRegEx   =   New   RegExp
objRegEx.Pattern   =   lCase(strAttribute)   &   "= " "[0-9a-zA-Z]* " " "
objRegEx.IgnoreCase   =   True
objRegEx.Global   =   True
Set   Matches   =   objRegEx.Execute(strTag)
if   Matches.Count   >   0   then
GetAttribute   =   Split(Matches(0).Value, " " " ")(1)
else
GetAttribute   =   " "
end   if
set   Matches   =   nothing
set   objRegEx   =   nothing
end   function

这个是我写的函数   后来发现不能匹配中文   请高手帮个忙   谢谢

格式是把asp= "asp "   中的asp弄出来   但是asp= "语言 "   弄不出来   谢谢了

------解决方案--------------------
try


[0-9a-zA-Z\u4e00-\u9fa5]*