the regexp
\<div class=g\>.*?\<a href=\"?(http:\/\/stackoverflow.com\/)\"?.*?\>.*?\<a href=\"?(.+?)\"?.*?\>.*?\<\/div\>
the target
<div class=g>
<link rel=prefetch href="http://stackoverflow.com/">
<h2 class=r>
<a href="http://stackoverflow.com/" class=l onmousedown="return rwt(this,'','','dres','1','AFQjCNERidL9Hb6OvGW93_Y6MRj3aTdMVA','&sig2=ybSqh-7yEKCGx_2MNIb7tA')">
<em>Stack Overflow</em>
</a>
</h2>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td class=j>
<font size=-1>
<span class=f>Categoria: </span>
<a href="/Top/Computers/Programming/Resources/Chats_and_Forums/?il=1">Computers > Programming > Resources > Chats and Forums</a>
<br>A language-independent collaboratively edited question and answer site for programmers. Questions and answers displayed by user votes and tags.<br>
<span class=a><b>stackoverflow</b>.com/</span>
</font>
</td>
</tr>
</table>
</div>
it should match everything, http://stackoverflow.com/ and /Top/Computers/Programming/Resources/Chats_and_Forums/?il=1, but it matches everything, http://stackoverflow.com/ and /
Why?