procmail
[Top] [All Lists]

Re: regex syntax of [tabspace]*

2002-06-20 07:14:56
On Thu, 20 Jun 2002, Timothy J. Luoma wrote:

I have a recipe like this

:0fhw
* ^Subject:[   ]*SV: *\/[^ ].*
|formail -i"Subject: Re: $MATCH" -A"X-Note: Unnationalized RE (SV)"

where the empty [ ] is a tab followed by a space.

Am I correct in my assumption that

      [        ]*SV:

means "Any number of tabs OR a spaces before a literal 'SV:' " ?


      "Any number" includes zero!
      ^^^^^

        Use "+" instead of "*" to say more then zero.

Bye,
 Udi

_______________________________________________
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>