Hi,

On Thu, Jan 9, 2014 at 10:55 AM, Gary Stainburn <
gary.stainb...@ringways.co.uk> wrote:

> On Thursday 09 January 2014 09:53:35 Gary Stainburn wrote:
> > On Thursday 09 January 2014 02:01:55 timothy adigun wrote:
> > > Hi,
> > >
> > > On Thu, Jan 9, 2014 at 11:57 AM, Peter Gordon
> >
> > <pete...@netspace.net.au>wrote:
> > > > I'm trying do write a one line RE to strip sequence numbers off
> > > > filenames.
> > >
> > >  Something like this?
> > >
> > >     s/^[0-9_-]+//;
> >
> > Shouldn't that be
> >
> > s/^[0-9]+[-_]//
>
> Oops, Missed a bit, try
>
> s/^[0-9]+[a-c]{0,1}[-_]//;
>
>  I had though all the OP wanted was to strip the Filenames of numbers and
the* _* and *-* character. Until I saw his own solution, which I didn't try
to see his desired output. That was why I said something like
this? Because, I was not sure what the OP desired output might be and I
didn't ask.
Nice one though!

>
> Ringways Garages
> http://www.ringways.co.uk
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>


-- 
Tim

Reply via email to