note 11324 added to ereg

From: Date: Fri, 16 Feb 2001 07:51:09 +0000
Subject: note 11324 added to ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-11133@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>!. http://www.php.net/manual/en/function.ereg.php

« previous php.notes (#11133) next »