> $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