1

我有这个问题:来自这个<html>标签的列表:

<td class="pthtdd"><a target="_blank" href="http://address.info">address.info</a>
<td class="pthtdd"><a target="_blank" href="http://address1.com">address1.com</a>
<td class="pthtdd"><a target="_blank" href="http://address2.de">address2.de</a>
<td class="pthtdd"><a target="_blank" href="http://address3.co.uk/">address3.co.uk</a>

我只想用正则表达式选择http://address.infoaddress1.comaddress2.de ecc。我已经写了这个正则表达式:http:.{1,}?""最后有。我可以选择所有没有"

4

1 回答 1

3

你可以试试这个:

http:[^"]+

[^"]将匹配任何字符,但".

于 2013-01-09T14:49:29.837 回答