procmail
[Top] [All Lists]

Re: What exactly does \< expand to?

2004-07-28 20:14:46
Justin Gombos wrote:

Besides a-z, is there anything else the \< expression does not match?
Does it match digits?  Does it match all punctuation, or just some?
What about carriage returns and linefeeds?

The answer is in man procmailrc(5), which says that it is shorthand for
[^A-Za-z0-9_] but also matches newlines, so ...

It does not match digits.
It does not match underscores.
It matches any punctuation mark except an underscore.
It matchex linefeeds.
It matches carriage returns, but AFAIK any <CR><LF> pair has been reduced to <LF> by the time a message gets to procmail.

In procmail, \< and \> mean the same thing. (In egrep and perl they do not.)

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