Thanks Michal,

That's what I thought at first, but it eliminates all lowercase letters in a 
capitalized word as well.

I plugged away at it and got it to work:

$search = "(\b[a-z][a-z]*?\b)";
$replace = "";
$add = preg_replace($search, $replace, $add);

Thanks for the help!
Andre


On Monday 14 June 2004 06:41 pm, Michal Migurski wrote:
> > $search "(([^\bA-Z][a-z]\b*?)*?));
> > $replace = "";
> > $add = preg_replace($search, $replace, $add);
> >
> > hWhen I tried it, it eliminated all lowercase words, and in the case of
> > the single upper case word, 'Bellingham', it retained only the capital
> > 'B' -- arrgh!
>
> You could just look for lowercase words, instead of "not-uppercase" words,
> like so:
>       /\b[a-z]\w+\b/
>
> ---------------------------------------------------------------------
> michal migurski- contact info and pgp key:
> sf/ca            http://mike.teczno.com/contact.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to