|  | Posted by mich dobelman on 07/09/08 11:55 
Thank you for your reply.
 I wanted to carry bg-grey-m class just in case similar table happened to be
 found.
 However, after all, putting /s switch solved all the problem.
 I haven't figured out what /s is for.
 
 preg_match_all("/<td
 [^>]*class=\"bg-grey-m\">[^<]+<table([^>]*)>.*<td[^>]*>message<\/td><td[^>]*><i>(.*)<\/i><\/td>.*<\/table>/siU",
 $string, $matches);
 
 foreach($matches[2] as $link)
 {
 echo "<li>$link</li>\n";
 }
  Navigation: [Reply to this message] |