Possible Duplicate:
Replace only first match using preg_replace
I have a string as follows:
a quick brown fox jumps over a lazy dog
and I want the result to be
a
quick brown fox jumps over a lazy dog
Want to replace only the first occurrence of multiple(more than 1) whitespace with a newline, but leave the other multiple whitespaces after that untouched.
How can I do that with preg_replace?
Thanks