Regular Expression - highlighting

From: Date: Sun, 03 Oct 2004 05:36:40 +0000
Subject: Regular Expression - highlighting
Groups: php.general 
Request: Send a blank email to php-general+get-198524@lists.php.net to get a copy of this message
Hello list, I'm pretty terrible with regular expressions, I was wondering if someone would be able to help me with this http://paste.phpfi.com/31964 The problem is detailed in the above link. Basically I need to match the contents of any HTML tag, except a link. I'm pretty sure a lookbehind set is needed in the center (%s) bit. Any suggestions would be appreciated, but it's not quite as simple as it sounds - if possible please make sure you run the above script and see if it "PASSED". Here's a little gui to make it easier to test: http://aidan.dotgeek.org/test_hl.php Thanks in advance, Aidan

« previous php.general (#198524) next »