我想獲取div標籤的內容。 例如:如何使用正則表達式獲取div標籤內容
<div id="gameDetailsInner">
<div id="headerText" style="padding-left: 0px !important;padding-top: 0px !important;">
<h1><a href="http://www.abc.com/games.php?flash=7264">abc text</a></h1>
</div>
<div style="min-height: 90px;">
<a href="http://www.abc.com/games.php?param=12345"><img src="http://abc.abc.com/images/7264.jpg" alt="abc" width="120" height="78" id="gameDetailsInnerImg"/>
</a>
How can i get this text with regex?
</div>
謝謝...
爲什麼你需要的正則表達式之前?你想解析一個靜態的HTML文檔嗎?如果是這樣,你在用什麼語言工作? –
@AndyLester你可以,你不應該:) – Trufa
是的我想解析一個靜態HTML文檔,我使用的是C#:\ –