We don't bite newbies here... much | |
PerlMonks |
Re^3: Capitalize First Letter of Each Wordby fishbot_v2 (Chaplain) |
on Jun 30, 2005 at 13:54 UTC ( [id://471316]=note: print w/replies, xml ) | Need Help?? |
It does, except it doesn't work:
Two things are happening here: The first is that this requires each word to be two characters or more (so it fails on the initial "a"). The second is that the . can match a space, so " sTrinG" fails because \1 contains a space. I suggest
In Section
Seekers of Perl Wisdom
|
|