Strip alternating spaces in first word of paragraph

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a series of paragraphs in which the first word contains alternating spaces. How can I strip out the spaces of only this first word, while leaving the remainder of the paragraph untouched?

Here's an example:

T h i s is the first paragraph. Only the first word is wacky.

A n o t h e r paragraph with a wacky first word! Strange stuff...

E n d l e s s insanity here!

--
Aaron Gould
Parts Canada - Web Developer

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux