procmail
[Top] [All Lists]

Re: about procmail regex operators

2010-03-27 12:31:13
On 27-Mar-2010, at 10:06, Harry Putnam wrote:

Where to get a succinct review of regex operators in procmail?

Old regex man pages?

Do we have any kind of counting operator like those in perl?

example:
       \d{2} <= exactly 2 digits
    [0-9]{2} <= ditto

No, you have to use regex scoring to do things like that.

I want to specify a number of occurrences [a-zA-Z0-9] But the number
is too high to be able to write it out neatly, it would take probably
15-18 repeats of the regex [a-zA-Z0-9].

:0
* -14^0
* 1^1 [a-zA-Z0-9]
{ LOG="15 or more alphanums!" }



-- 
The Salvation Army Band played and the children drunk lemonade and the morning
lasted all day, all day.  And through an open window came like Sinatra in a
younger day pushing the town away


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

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