当前位置: 代码迷 >> ASP >> 怎么用asp提取下面的数据
  详细解决方案

怎么用asp提取下面的数据

热度:306   发布时间:2012-02-28 13:06:36.0
如何用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>

  相关解决方案