[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Single out a alarm with regex
- Subject: [ale] Single out a alarm with regex
- From: cfowler at outpostsentinel.com (Christopher Fowler)
- Date: Wed, 04 Oct 2006 15:28:01 -0400
I've started with a regex that looks like this:
'^(DCH:.*?(MAINT).*$)'
The outer '(' are there so I can capture the whole thing in $1.
what I'm trying to do is create a regex that will catch anything that
matches this format:
DCH: 0 <TYPE> ....
I want th whole line but I do not want it if the type is 'MAINT'. What
I'm trying to do is get it to pass when the word MAINT is not in the
phrase. Can someone give me a pointer?