Multiple line spanning regexp

From: Date: Wed, 08 Aug 2001 04:41:05 +0000
Subject: Multiple line spanning regexp
Groups: php.general 
Request: Send a blank email to php-general+get-61746@lists.php.net to get a copy of this message
I'm trying to delete everything in a <UL> that spans multiple lines. I just want to get rid of the whole thing and thought it would be relatively straight forward but I'm getting nowhere. The list takes the form; <UL> <LI CLASS="resultstable">Blah</LI> <LI CLASS="resultstable"><a href="http://somewhere">Blah</a></LI> </UL> So far I've got this; $response = preg_replace( "/(<ul>)(.*?)(<\/ul>)/im", "", $response ); which doesn't work :-) HELP! TIA, Brad -- Brad Hubbard Congo Systems 12 Northgate Drive, Thomastown, Victoria, Australia 3074 Email: brad@congosystems.com Ph: +61-3-94645981 Fax: +61-3-94645982 Mob: +61-419107559

« previous php.general (#61746) next »