I would do it in two steps.
perl -le '$_="xooox"; $_ = ucfirst; s/(.)$/\U$1\E/; print'Update: Well, maybe one step:
perl -le '$_="xoox"; s/(^.|.$)/\U$1\E/g; print'-sauoq "My two cents aren't worth a dime.";
In reply to Re: help with a regexp
by sauoq
in thread help with a regexp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |