procmail
[Top] [All Lists]

Re: Regular expression problem?? (numbers, bogus IP's)

1997-05-12 09:36:00
On Sun, 11 May 1997, Ralph Lindberg & Ellen Winnie wrote:

  I'm using this expression:
* ^Received.*\[[0-9\.]*([03-9][0-9][0-9]|2[6-9][0-9]|25[6-9])

  Which missed a match on
Received: from mailhost.colgetifbabe.com(alt1.colgetifbabe.com(281.3.22.75)

Okay, we can reduce your rule a little for this one match:

^Received.*\[[0-9\.]*281
           ^
      you're insisting that there be a [ in your regex here,
      and there is isn't one in your string.

Cheers,
Wes
      
--
Wesley W. Garland       | ISO: FM-Synth Patches/Editors, pref DX-100
Queen's University      |                   -=<>=-
CISC Department         |    I feel like my life is just a little 
Kingston, ON, Canada    |   umop apisdn * upside down * umop apisdn


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