regex and multiline problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

i have a problem below code :

<html dir="rtl">

<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
<title>New Page 1</title>


<p><a href="">gfsdfgsdgdsfgsdgsfd</a></p>">">gfsdfgsdgdsfgsdgsfd</a></p>
<p><A href=
<img border="0" src="file:///D:/My%20Documents/My%20Pictures/mohsen.jpg"
width="480" height="640"></a></p>


//$text='<a href="">gfsdfgsdgdsfgsdgsfd</a>">">gfsdfgsdgdsfgsdgsfd</a> <a
href=" /">';
preg_match_all('/(<a *href *=)(["\']*)(http:\/\/[^"=
Quoted text here. Click to load it

it can find just one of two match string in text (<a
href="">">">). but after several tests, and after i put
two match strings in one line :
$text='<a href="">gfsdfgsdgdsfgsdgsfd</a>">">gfsdfgsdgdsfgsdgsfd</a> <a
href=" /">';
 it could find both of them! it think the reason of this problem is
therefore i have a questoin. is regex functions in php can support
multiline texts?
many thanks
(sorry for my bad english)

Site Timeline