At 01:31 2003-05-19 -0700, Stand H wrote:
I'm new to regex(in general) and procmail.
I have questions regarding .*
There's an excellent regexp book published by O'Reilly and Associates
(ORA), titled _Mastering_Regular_Expressions_
If I have a pattern 'abcdef' and a regex .* without
single quote.
If you write a simple recipe and use match:
#-----
# testfile.rc
STRING="abcdef"
:0
* STRING ?? ()\/.*
{
LOG="We matched on [$MATCH]
"
}
:0
* ^Subject:\/.*
{
LOG="We matched subject on [$MATCH]
"
}
#-----
then invoke it:
cat somemessage.txt | procmail -m testrcfile.rc
You might be surprised at what you find. Consider that _NOTHINGNESS_
satisfies that regexp, and thus, nothing is necessary to match it. If you
have: ".*foo", then the string which is matched is different.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail