preg_match_all

From: Date: Sat, 14 Dec 2002 12:16:24 +0000
Subject: preg_match_all
Groups: php.general 
Request: Send a blank email to php-general+get-135824@lists.php.net to get a copy of this message
hi, i try to parse html data with php's preg_match_all() function. here is a sample data that i try to parse: <a href="http://www.xxx.com" class=M>xxx</a> the regular expression that i use is: preg_match_all("/<a[ ]href=\"([^\"]+)\"[ ]class=M>([^<]+)<\/a>/",$buffer,$ma tch); by this expression i get the same values more then one time. but i absolutely know that there's no repetation of same value. probably my problam is about the regular expression that i use. any help will be great help

« previous php.general (#135824) next »