Hi I have problems with a regular expression.
I have a html file like this: .... <body> <div>Hello</div> <br> <br> <div>somthing</div> <br> </body> .... And i want to use preg_match to get a list of all the <div> tags in the file: result: $list[0] = <div>Hello</div> $list[1] = <div>somthing</div> I have tryed this: preg_match('/.*(\<div\>.*\<\/div\>).*/', $contents, $list); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php