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
>
> <[email protected]>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}[-_]//;
Ringways Garages
http://www.ringways.co.uk
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/