[Exim] regex help needed please

Góra strony
Delete this message
Reply to this message
Autor: Jeffrey Wheat
Data:  
Dla: Exim users list
Temat: [Exim] regex help needed please
This is slightly OT but pertains to exim log processing.

I am trying to match on the following:

[1\23] 2002-12-17 14:00:09 18OMwr-000JED-00 H=sbs1941.customer.demon.com (jbrserver.sbs1941.customer.demon.com) [194.159.222.168] F=davedader@???> rejected after DATA: ACL-Reject: Forgery:NOT FROM HOTMAIL ( from sbs1941.customer.demon.com ([194.159.222.168] helo=jbrserver.sbs1941.customer.demon.com)

With the following:

if ($text =~ /^[\d\/\d]\s\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d/) {

I am failing miserably though on this. Any help is greatly appreciated. The camel book
has helped a lot but I am still missing something.

Many thanks,
Jeff

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.427 / Virus Database: 240 - Release Date: 12/6/2002