|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: regular expression search and replaceby ronin78 (Novice) |
| on Nov 18, 2014 at 17:56 UTC ( [id://1107609]=note: print w/replies, xml ) | Need Help?? |
|
As I understand it, you want to capitalize the first letter in each sentence. You could do what you are trying to do above with a capture group (get the match and then uppercase it in your replace). However, you could also split the string into sentences, and then call uppercase on the first letter in the string and lowercase on the remainder.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||