procmail
[Top] [All Lists]

Re: A quick regex question

1998-02-24 12:27:35
Tor Perkins,

| The FAQ says:
| 
|   The manual says the regexp engine is egrep compatible
|     'Tain't so. This statement is probably a holdover from older times when
|     basically it was, or tried to be.
| 
| I've boiled it down to this:  q{4,}   does not seem to work for me...

It doesn't work in many egreps either (though there are yet other ways in
which procmail's regexp engine differs from egrep's).

| What this should match is four or more of the letter q in a row.  It can be
| used in a recipe like this:
| 
| :0:
| * q{4,}
| my-folder
| 
| Is this not supported?  Is there a good work-around?

It is not supported.  To match four or more q's in a row, the regexp is

  qqqq+

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