Re: Need help with a regex

From: Date: Mon, 22 Sep 2003 03:19:22 +0000
Subject: Re: Need help with a regex
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-163392@lists.php.net to get a copy of this message
* Thus wrote Adam Zey (guspaz@gus.ath.cx): > Thanks, that did the trick :) > > Only thing was I had to modify it for newline support: > > <tr><td class='newsitemtitle-td'>([^<]*)<\/td><td > class='newsitemposter-td'><span > class=([^>]*)>([^<]*)<\/span>([^<]*)<\/td><\/tr> <tr><td > class='newsitemcontent-td' colspan=2>((.|\n)*?)<\/td><\/tr> For new line support look at the 's' modifier. http://php.net/manual/en/pcre.pattern.modifiers.php Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#163392) next »