in reply to help with a regexp
This works!#!/usr/bin/perl -wl use strict; my $foo="xoxoxoxoxoxoxoxoxoxoxoxoxoxoxox"; $foo=~s/^(.)(.+?)(.)$/\U$1\E\L$2\E\U$3\E/; print $foo;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: help with a regexp
by Helter (Chaplain) on Sep 26, 2002 at 19:39 UTC | |
by sauoq (Abbot) on Sep 26, 2002 at 19:43 UTC | |
Re: Re: help with a regexp
by sauoq (Abbot) on Sep 26, 2002 at 19:46 UTC | |
by husoft (Monk) on Sep 26, 2002 at 19:56 UTC |