[REGEX] Regex ref to '<' character problem (fwd)

From: Date: Thu, 11 Jul 2002 09:40:09 +0000
Subject: [REGEX] Regex ref to '<' character problem (fwd)
Groups: php.general 
Request: Send a blank email to php-general+get-107041@lists.php.net to get a copy of this message
Hi, I try to refer to the '<' character in a regex using preg_replace function: preg_replace("/(http:\/\/.\S+(?<![\<\>]))/", "<a href=\"$1\" target='ext'>$1</a>", "http://test<br>"); Ref to '>' with '\>' seems to work but not '<' with '\<'... Any idea??? Thanks!

« previous php.general (#107041) next »