On Thu, 2005-10-13 at 22:15 +0200, Elmar Hoffmann wrote: > > ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ (imap|pop3)-login: Login: > > [.[:alnum:[EMAIL PROTECTED] \[(::ffff:)?[:0-9.]+\]$ > > While the given example log entry unfortunately does not show it, an > IPv6 address does use hex digits, ie. the address of the box I'm > writing this on is 2001:1638:1810::201:2ff:fe0d:6cec, which would not > be matched by the pattern (::ffff:)?[:0-9.]+ used above (and the other > rules I didn't quote). > Thus a correct pattern to match an IPv4 or IPv6 address would be: > [0-9a-f.:]+
Thanks for catching that, my only excuse is that I was falling asleep at the keyboard at the time.. -- -Jamie L. Penman-Smithson <[EMAIL PROTECTED]> t: +44 1273 424795; f: +44 1273 424795 PGP: C0A7 955E EED6 A309 23D7 863B C76A 26A3 F0DC FCA8 never send mail to: [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part