作者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