Re: regexp problem

From: Date: Mon, 18 Dec 2000 19:38:59 +0000
Subject: Re: regexp problem
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-30896@lists.php.net to get a copy of this message
Hi In article <20001217105520.H21270@zorka.com>, "Joe Stump" <joe@earth.care2.com> wrote: > Ok so you could have done str_replace(' foo ',' the ',$string); It is > the same thing then and it's still faster. and then I have to add special handling for the situation where I have a sentence thus: blah blah blah the. Your str_replace() will only work if the word is delimited by white space, which isn't always the case. The only way to do this acceptably is with regexp's. Thanks again -- _____ _ _ _____ | __ | |___ ___| |_ ___| __|_ _ ___ Chris "Ng" Jones | __ -| | .'| _| '_|___|__ | | | | chris@black-sun.co.uk |_____|_|__,|___|_,_| |_____|___|_|_| www.black-sun.co.uk S o f t w a r e

« previous php.general (#30896) next »