Re: regexp problem

From: Date: Sun, 17 Dec 2000 12:48:44 +0000
Subject: Re: regexp problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-30731@lists.php.net to get a copy of this message
Hi In article <20001216175823.B21270@zorka.com>, "Joe Stump" <joe@earth.care2.com> wrote: > it's quite a bit faster and just the same thing. It's not "just the same thing", the regexp "\Wfoo\W" only replaces "foo" where it's a whole word, str_replace(); would replace "foobar", which I don't want. Thanks for the suggestion anyway - fortunately I managed to fix the problem, I think I must have had a typo or something. -- _____ _ _ _____ | __ | |___ ___| |_ ___| __|_ _ ___ Chris "Ng" Jones | __ -| | .'| _| '_|___|__ | | | | chris@black-sun.co.uk |_____|_|__,|___|_,_| |_____|___|_|_| www.black-sun.co.uk S o f t w a r e

« previous php.general (#30731) next »