This works!#!/usr/bin/perl -wl use strict; my $foo="xoxoxoxoxoxoxoxoxoxoxoxoxoxoxox"; $foo=~s/^(.)(.+?)(.)$/\U$1\E\L$2\E\U$3\E/; print $foo;
In reply to Re: help with a regexp
by husoft
in thread help with a regexp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |