On 09/01/2014 09:55, Gary Stainburn wrote:
On Thursday 09 January 2014 09:53:35 Gary Stainburn wrote:
Oops, Missed a bit, try
s/^[0-9]+[a-c]{0,1}[-_]//;
/[a-c]{0,1}/ is normally written as /[a-c]?/
---
This email is free from viruses and malware because avast! Antivirus protection
is active
On Thu, 9 Jan 2014 09:55:45 +, Gary Stainburn wrote:
>On Thursday 09 January 2014 09:53:35 Gary Stainburn wrote:
>
>Oops, Missed a bit, try
>
>s/^[0-9]+[a-c]{0,1}[-_]//;
>
>
>Ringways Garages
>http://www.ringways.co.uk
>
Yes, this works & is probably more efficient than my RE.
Thanks
--
Peter
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
> >
> > 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
>
> wrote:
> > > I'm trying do write a one line RE to strip sequence numbers off
> > > filenames.
> >
> > Something
On Thursday 09 January 2014 02:01:55 timothy adigun wrote:
> Hi,
>
> On Thu, Jan 9, 2014 at 11:57 AM, Peter Gordon
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]+[-_]//
--
Gar
On Thu, 9 Jan 2014 10:57:00 GMT, Peter Gordon wrote:
>I'm trying do write a one line RE to strip sequence numbers off
>filenames. The filename can may have:
>No sequence numbers
>or
>Start with a variable number of digits,
>Followed by an optional character between a and c
>Followed by a compulsor
Hi,
On Thu, Jan 9, 2014 at 11:57 AM, Peter Gordon wrote:
> I'm trying do write a one line RE to strip sequence numbers off
> filenames.
Something like this?
s/^[0-9_-]+//;
> The filename can may have:
> No sequence numbers
>or
> Start with a variable number of digits,
> Followed by
I'm trying do write a one line RE to strip sequence numbers off
filenames. The filename can may have:
No sequence numbers
or
Start with a variable number of digits,
Followed by an optional character between a and c
Followed by a compulsory - or _.
The characters - and _ can occur in the filenam