procmail
[Top] [All Lists]

repeat limited regexp?

2002-08-16 04:43:11
Well I tried for a sensible subject... :)

Is there any chance of procmail getting the {n,m} regexp construct so
that, for example, I could change this:

0086-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9]

to this:

0086-[0-9]{3}-[0-9]{6}

It makes it so much more readable and far less error prone. The
various forms would be:

{n,} - match previous atom n or more times
{,m} - upto m times
{n,m} - match n to m times
{n} - match n times only

I had a quick look with google and all I found was a reference stating
that the absence of this is most notable. :)

-- 
   "There was a moo from under the blanket, and I knew it was not a person,
   but a calf."
         - http://www.iol.co.za/index.php?art_id=qw1028795041273B265
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>