fazedandconfused has asked for the wisdom of the Perl Monks concerning the following question:
I'm struggling with a regex requirement on our Xymon monitoring system which uses Perl format regular expression.
however for this particular requirement I need to match the same but exclude the 2 lines below([A-Z.]*BO)<br>
DI.PRODUCT.HIERARCHY.IMPORT.BO
DI.CATSETUP.PRODUCT.IMPORT.BO
It would appear I missed a couple of things.
1. I will probably only ever need to exclude this 2 lines
2. It needs to be a single statement (a peculiarity of Xymon monitoring)
3. The exclusions ideally need to be the whole string but could at a push be restricted to the words HEIRARCHY and CATSETUP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex to match with exclusions
by kcott (Archbishop) on Oct 01, 2015 at 15:34 UTC | |
|
Re: Regex to match with exclusions
by kroach (Pilgrim) on Oct 01, 2015 at 15:03 UTC | |
|
Re: Regex to match with exclusions
by GotToBTru (Prior) on Oct 01, 2015 at 15:09 UTC | |
|
Re: Regex to match with exclusions
by stevieb (Canon) on Oct 01, 2015 at 14:43 UTC | |
|
Re: Regex to match with exclusions
by Anonymous Monk on Oct 01, 2015 at 16:44 UTC | |
|
Re: Regex to match with exclusions
by fazedandconfused (Novice) on Oct 01, 2015 at 15:17 UTC | |
|
Re: Regex to match with exclusions
by locked_user sundialsvc4 (Abbot) on Oct 01, 2015 at 15:39 UTC |