日期:2014-05-17 浏览次数:21158 次
<meta http-equiv=Content-Type content=text/html;charset=gb2312> <meta http-equiv=Content-Type content="text/html;charset=gb2312"> <meta http-equiv=Content-Type content="text/html;charset=gb2312"/> <meta http-equiv=Content-Type content=‘text/html;charset=gb2312’/>
<script language="vbscript">
Dim str, re, rv
str = "<meta http-equiv=Content-Type content=text/html;charset=gb2312>"
str = "<meta http-equiv=Content-Type content=""text/html;charset=gb2312"">"
str = "<meta http-equiv=Content-Type content=""text/html;charset=gb2312""/>"
str = "<meta http-equiv=Content-Type content=‘text/html;charset=gb2312’/>"
str = "<meta charset=""UTF-8"" />"
Set re = New RegExp
re.Pattern = "<meta[^>]+charset=[""]?([\w\-]+)[^>]*>"
re.Global = True
re.IgnoreCase = True
re.MultiLine = True
Set matches = re.Execute(str)
if matches.Count>0 then
msgbox matches(0).SubMatches(0)
end if
</script>