procmail
[Top] [All Lists]

Re: | vs. ? And another basic question

2003-01-08 17:19:47
Regarding

=> * ^Received:.*[[(]209\.163.\.100.[0-9][0-9]?[0-9]?[])]

(which has an erroneous "." after the "163", by the way - I'll assume
its absence), Jefferis Peterson wrote:

So, I was trying to follow this logic, but I don't understand why
the entire string is enclosed in brackets.  Is he looking for
literal brackets?

No, you're looking at it the wrong way: it's not the entire string
enclosed in brackets, but there's

  [(

in brackets at the beginning and

  ])

in brackets at the end, so that the regexp (only!) matches if the
address is enclosed in parentheses, brackets or a combination:

  [209.163.100.1]
  (209.163.100.2)
  [209.163.100.3)
  (209.163.100.4]

/HW

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail