URLを取り出す正規表現
Posted: 2014年9月30日(火) 20:09
<div class="rc" data-hveid="31"></div>の中にある
<h3 class="r"></h3>の中にある
<a>タグの中にあるhref属性
をとりだす正規表現はどのように書けばよいでしょうか。
下記の入れ子になっているソースの場合
http://ja.wikipedia.org/wiki/PHP:_Hypertext_Preprocessor
を取り出すことになります。
<div class="rc" data-hveid="31">
<h3 class="r">
<a onmousedown="return rwt(this,'','','','1','AFQjCNHP46Qyp87823XLbcO6pn4iLw0lyA','','0CCAQFjAA','','',event)" href="http://ja.wikipedia.org/wiki/PHP:_Hypertext_Preprocessor">
</h3>
</div>
よろしくお願い致します。