|  | Posted by BinnyVA on 06/18/05 11:55 
Hi,
 > I am trying to extract hello world out of the following html string if
 > the "message" string is found in the same row.
 
 > preg_match_all("/<td
 > [^>]*class=\"bg-grey-m\">[^<]+<table[^>]*>.*message.*<i>(.*)<\/i>.*<\/table>.*/iU",
 > $string, $matches);
 
 Try...
 
 preg_match_all('/<tr><td>message<\/td><td><i>(.+?)<\/i><\/td><\/tr>/',$string,
 $matches);
 
 Hope this is what you are looking for.
 
 --
 Binny V A
 http://www.bin-co.com/ - All about Scripting Languages in Web
 Development
  Navigation: [Reply to this message] |