日期:2014-05-17  浏览次数:21146 次

如何用asp提取下面的数据?

如何提取下面的数据
  07350322150011   532201211   0700   福建师范学院   02   计算机科学与技术
去掉那些html代码?
在这里先谢谢了!
<tr>
<td   height= "18 "   align= "center "   bgcolor= "#FFFFFF "> 07350322150011 </td>
<td   align= "center "   bgcolor= "#FFFFFF "> 532201211 </td>
<td   align= "center "   bgcolor= "#FFFFFF "> 0700 </td>
<td   align= "center "   valign= "top "   bgcolor= "#FFFFFF "> 福建师范学院 </td>
<td   align= "center "   valign= "top "   bgcolor= "#FFFFFF "> 02 </td>
<td   align= "center "   valign= "top "   bgcolor= "#FFFFFF "> 计算机科学与技术 </td>
</tr>

------解决方案--------------------
<textarea id= "textarea1 " >
<tr>
<td height= "18 " align= "center " bgcolor= "#FFFFFF "> 07350322150011 </td>
<td align= "center " bgcolor= "#FFFFFF "> 532201211 </td>
<td align= "center " bgcolor= "#FFFFFF "> 0700 </td>
<td align= "center " valign= "top " bgcolor= "#FFFFFF "> 福建师范学院 </td>
<td align= "center " valign= "top " bgcolor= "#FFFFFF "> 02 </td>
<td align= "center " valign= "top " bgcolor= "#FFFFFF "> 计算机科学与技术 </td>
</tr>

</textarea>

<script language= "vbscript ">
'vbs的写法
Dim regEx , aaa ,str
str=textarea1.value
Set regEx = New RegExp
regEx.Pattern = " <[^> ]+> "
regEx.IgnoreCase = true
regEx.Global = True
aaa=regEx.replace(str, " ")
MsgBox aaa


</script>