in reply to regex for text manipulation
my $str = "today is wednesday.tomorrow IS THURSDAY";
$str =~ s/^(\w)(.*?)([.])(\w)(.*)/uc($1).lc($2).lc($3).uc($4).lc($5)/g
The third match is the dot, then why the need of lc($3),
i think $3 is enough.
$str =~ s/^(\w)(.*?)([.])(\w)(.*)/uc($1).lc($2).($3).uc($4).lc($5)/gei;
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (430 votes). Check out past polls.