P is for Practical | |
PerlMonks |
regex for text manipulationby megaurav2002 (Monk) |
on Nov 07, 2007 at 05:49 UTC ( [id://649399]=perlquestion: print w/replies, xml ) | Need Help?? |
megaurav2002 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, I am trying to write a regex to convert the first letter and any letter following a full stop in a string to uppercase and all the other characters to lowercase. for eg: "today is wednesday.tomorrow IS THURSDAY." => "Today is wednesday.Tomorrow is thursday." Any help will be appreciated. Thanks, Gaurav
"Wisdom begins in wonder" - Socrates, philosopher
Back to
Seekers of Perl Wisdom
|
|