Python Regular Expressions in PHP 
<p>What would be the PHP equivalent to this code, I have tried curl but am unable to get it to work</p>

<pre><code>import urllib2,urllib,re

url=' Delete me'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3 Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=lemon.read()
response.close()
match=re.compile('Delete me 2').findall(link)
print match
</code></pre>

<p>Ok my code now looks like this </p>

<pre><code>&lt;?php

 $url = "url";
 $homepage = file_get_contents($url);
 print $homepage
?&gt;
</code></pre>

<p>in python I would now find the strings I need using something like this</p>

<pre><code>match=re.compile('src="(.+?)" border="0" /&gt;&lt;/td&gt;\n &lt;td class="namewidth"&gt;&lt;a title=".+?" href="(.+?)"&gt;(.+?)&lt;/a&gt;').findall(link)
</code></pre>

<p>(.+?) being the unknown what is the equivalent to this in php?</p>
