Re: Regular expression for correcting proper nouns

From: Date: Wed, 17 Jul 2002 12:50:30 +0000
Subject: Re: Regular expression for correcting proper nouns
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108062@lists.php.net to get a copy of this message
On Wednesday 17 July 2002 20:07, Henry wrote: > Hi All, > > I'm looking for a simple was to correct a list of proper nouns given all in > lower case! > > For example > > given $string="london paris rome"; > > I would like "London Paris Rome". > > However there is one cavet; if the word already has a captital anywhere in > it, it should be left alone!!! ucwords() > Is there a soultion using regular expressions? Yes. > Also is there one for removing multiple spaces? Yes. > i..e given "A B C D E" it would give "A B C D E". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Stability itself is nothing else than a more sluggish motion. */

« previous php.general (#108062) next »