作者hpo14 (陌生)
看板RegExp
标题[问题] 该怎麽取?
时间Thu Jan 14 17:23:19 2010
语言:
VBScript
问题:
-----网页内容,不含此线 (… 表省略资料)-----
…
<title>
资料A</title>
…
<tr align="center">
<td height="50" colspan="5"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td align="center">
<font color="#FF6600" style="
font:12pt;font-weight:bold;">
资料B</font>
…
-----网页内容,不含此线 (… 表省略资料)-----
我想取出的是黄色部份,红色部份定固定不会变。
使用 Pattern = <title>(.+)</title> 的结果
Reg.Item(0).Value = <title>资料A</title>
.SubMatches(0) = 资料A
要怎麽改才有办法可以同时在SubMatches中 取得 资料A, B
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.204.46.87