[問題] 該怎麼取?

看板RegExp (正規表示式 Regular Expression)作者 (陌生)時間15年前 (2010/01/14 17:23), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
語言:VBScript 問題: -----網頁內容,不含此線 (… 表省略資料)----- … <title>資料A</title> … <tr align="center"> <td height="50" colspan="5"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>&nbsp;</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
文章代碼(AID): #1BJkA915 (RegExp)
文章代碼(AID): #1BJkA915 (RegExp)