[syslog-ng]Quoting ( and ) in a match

Allan Wind syslog-ng@lists.balabit.hu
Thu, 11 Dec 2003 17:09:30 -0500


--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello friends,

I am trying to match the following entry with syslog-ng 1.6.0rc4:

Dec 11 15:25:10 log_source@pawan amavis[29961]: (29961-01-2) Passed,
<syslog-ng-admin@lists.balabit.hu> -> <allanwind@lifeintegrity.com>,
Message-ID: <20031211202502.22100.73262.Mailman@www.balabit.hu>, Hits: -1.3=
64

And expected this to do the trick (after a bit of trial and error and
checking the archives):

match("^\\(.*Passed, ")

and eventually

match("^\\(\d+-\d+\\) Passed")

however neither works. If I leave out "\\(" on the first match, it works
as expected.  Any ideas?


/Allan
--=20
Allan Wind
P.O. Box 2022
Woburn, MA 01888-0022
USA

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/2OsauDtNyOwreTYRAlksAJ47FZYW2oy7Ph8XZ2OsE9S60BW9NwCgn/Cb
bB1gsD0N0v2+R7xOcnROHgk=
=ugrH
-----END PGP SIGNATURE-----

--gKMricLos+KVdGMg--