php preg_match two things in one time
<p>hello is it possible to match two things using one preg_match?
for example i have a :</p>

<pre><code>&lt;a href="http://google.com"&gt;Google&lt;/a&gt;
</code></pre>

<p>and i want to match url (http://google.com) and text (Google)</p>

<p>is it possible to do something like that? something like :</p>

<pre><code>preg_match('/^&lt;a href="(.*?)"&gt;(.*?)&lt;/a&gt;/', $source, $match)
</code></pre>

<p>then</p>

<pre><code>echo 'Url is : ' . $match[1] . ' , and text is : ' . $match[2];
</code></pre>

<p><strong>done now thanks</strong></p>

<p>*i'll accept answers in some mins</p>
