note 11324 deleted from function.ereg by jimw

From: Date: Fri, 02 Nov 2001 01:23:59 +0000
Subject: note 11324 deleted from function.ereg by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20134@lists.php.net to get a copy of this message
Found the solution from preg. $s = '<U><b>a</b></U>|<U><b>b</b></U>'; print preg_replace('/<U>(.*)<\/U>/U', '!\1!', $s); This prints !<b>a</b>!|!<b>b</b>! as expected, not !<b>a</b></U>|<U><b>b</b>!.

« previous php.notes (#20134) next »