Roman Neuhauser wrote:
> # [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100:
>> Dick Jiang wrote:
>>> I think you'd better use regular expression to replace the word
>> agreed - only it a serious dive in the deep end of regexps - the OP may
>> have to use a negative lookahead assertion, something lik
# [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100:
> Dick Jiang wrote:
> > I think you'd better use regular expression to replace the word
>
> agreed - only it a serious dive in the deep end of regexps - the OP may
> have to use a negative lookahead assertion, something like:
>
> $string="avenue 1
Dick Jiang wrote:
> I think you'd better use regular expression to replace the word
agreed - only it a serious dive in the deep end of regexps - the OP may
have to use a negative lookahead assertion, something like:
$string="avenue 1, ave 1 both have av+e :-)";
$words = preg_replace("#\\bave(?!n
I think you'd better use regular expression to replace the word
Regards,
Dick
-Original Message-
From: Kencana [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 5:12 PM
To: php-general@lists.php.net
Subject: [PHP] question about str_replace function
Hi all,
I got a doubt about
4 matches
Mail list logo