Re: [PHP] Eliminating all lowercase words

2004-06-14 Thread aajdubuc
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

Re: [PHP] Eliminating all lowercase words

2004-06-14 Thread Michal Migurski
> $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 lowerca

[PHP] Eliminating all lowercase words

2004-06-14 Thread Andre Dubuc
Hi folks! I need a function that will examine input for lowercase words. In the processing of that input, I would like to eliminate them (so as to keep all uppercase words). I prototyped a reasonable function using the 'Find: using regex feature' in KWrite, so it works there. $search "(([^\b