|There's more than one way to do things|
addd spaces after caps & reduce whitespace to single spaceby Anonymous Monk
|on Feb 19, 2005 at 15:14 UTC ( #432727=perlquestion: print w/replies, xml )||Need Help??|
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm a newbie to perl and I need some help with regular expressions to do some string manipulation.
HelloMyNameIsJake = Hello My Name Is Jake
The second thing I want to do is reduce all whitespace to a single space char. So any number of single spaces, tabs or newlines would become just " ".
I would be grateful if anyone out there can help me with this and perhaps give me a break down of what you have done so I understand it for the future.
Many thanks, Jake
Back to Seekers of Perl Wisdom