[rsyslog] regex help wanted
Rainer Gerhards
rgerhards at hq.adiscon.com
Wed Oct 29 16:34:52 CET 2008
Ah, thanks a lot to both of you. This greatly helps and makes me feel
much better. Of course, we can add additional regex libs, but it has
been proven that the current implementation works OK.
Thanks again,
Rainer
> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of RB
> Sent: Wednesday, October 29, 2008 4:33 PM
> To: rsyslog-users
> Subject: Re: [rsyslog] regex help wanted
>
> > The lazy quantifier (?) is not being respected, so rather than
> > returning the first match of "stuff, a forward slash, more stuff,
> > space", it returns the last one.
>
> Correct, because the lazy quantifier is not POSIX and therefore does
> not work when using POSIX extended REs. I was wondering why the extra
> '?', but had forgotten about lazy notation, preferring to make my
> regexes a bit more strict.
>
>
> RB
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
More information about the rsyslog
mailing list