[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bigsister-general] Negative lookahead assertions in etc/syslog


I've got a line something like this in etc/syslog

(?!.*foo.*)(^.*bar.*)    yellow  15       Warning: $1

Now I don't know a lot about Perl regex, but I think
this should match lines containing "bar" if and only if
they do not contain "foo".  It seem to work in Perl
source code, but not in syslog.  Lines with "bar"
with or without foo seem to have no effect.

Any ideas?

-- sas





===========================================================
This email may contain confidential and privileged material for the sole use
 of the intended recipient.  Any review or distribution by others is strictly
 prohibited.  If you are not the intended recipient please contact the sender
 and delete all copies.
===========================================================



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.