<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=625041709-17092010><FONT color=#0000ff
size=2 face=Arial>I have just found the answer to my own question by trial
and error: @@</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=625041709-17092010><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=625041709-17092010><FONT color=#0000ff
size=2 face=Arial>Peter</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Peter Mills <BR><B>Sent:</B> 17 September
2010 09:56<BR><B>To:</B> syslog-ng@lists.balabit.hu.<BR><B>Cc:</B> Sam
Moore<BR><B>Subject:</B> Matching against an embedded @<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=953044808-17092010>Since @ is a special
character, how do you match against strings containing an @? Do you escape
them e.g. \@ in order to parse them correctly? </SPAN></FONT><FONT size=2
face=Arial><SPAN class=953044808-17092010>I am trying to skip over/match the
string </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=953044808-17092010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=953044808-17092010></SPAN></FONT><FONT
size=2 face=Arial><SPAN class=953044808-17092010>[wx-event@juniper.net
</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=953044808-17092010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=953044808-17092010>and have had no
success.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=953044808-17092010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=953044808-17092010>Thanks</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=953044808-17092010></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN
class=953044808-17092010>Peter</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><A href="mailto:root@nagios-collector:/opt/syslog-ng/var"><FONT
color=#000000 size=2
face=Arial>root@nagios-collector:/opt/syslog-ng/var</FONT></A><FONT size=2
face=Arial># /opt/syslog-ng/bin/pdbtool match -D -c -p
/opt/syslog-ng/var/db/patterns/v1/test2.xml -M "- - WXC-192.168.61.202
register 1102 [wx-event@juniper.net eventtime="1284641119" metric="Primary Reg
Server Unreachable" sev="major" type="sys"] REG: Self registration failed.
IP=192.168.61.242"<BR>Pattern matching part:<BR>- - </FONT><A
href="mailto:WXC-@IPv4:.wxc.host_ip=192.168.61.202"><FONT color=#000000 size=2
face=Arial>WXC-@IPv4:.wxc.host_ip=192.168.61.202</FONT></A><FONT size=2
face=Arial>@ @STRING:.wxc.process=register@ @NUMBER:.wxc.pid=1102@
@ANYSTRING:rest=[wx-event@juniper.net eventtime=1284641119
metric=Primary@<BR>Matching part:<BR>- - WXC-192.168.61.202 register 1102
[wx-event@juniper.net eventtime=1284641119
metric=Primary<BR>Values:<BR>MESSAGE=- - WXC-192.168.61.202 register 1102
[wx-event@juniper.net eventtime=1284641119
metric=Primary<BR>.classifier.class=system<BR>.classifier.rule_id=1<BR>.wxc.host_ip=192.168.61.202<BR>.wxc.process=register<BR>.wxc.pid=1102<BR>rest=[wx-event@juniper.net
eventtime=1284641119 metric=Primary<BR></FONT></DIV><BR>
Imtech Telecom Global is a limited company registered in England and Wales. Registered number: GB04407184. Registered office: Viables 3, Jays Close, Basingstoke, Hampshire, RG22 4BS.<BR>
______________________________________________________________________<BR>
This email has been scanned by the MessageLabs Email Security System.<BR>
For more information please visit http://www.messagelabs.com/email <BR>
______________________________________________________________________<BR>
</BODY></HTML>