Using Regex in Compliance Checks (RME)

Unanswered Question
Sep 21st, 2007

Hi,

It seems that a legitimate Regex statement is not working in performing a compliance check in RME.

E.g.

The below line exists in the device config

+++++++++++++++++++

logging buffered 100000 informational

+++++++++++++++++++

When using regex to match this in compliance

OK --> + [#logging buffered .*#]

OK --> + [#logging buffered .* informational|debugging#]

Not OK --> + [#logging buffered .* debugging|informational#]

Not OK --> + [#logging buffered .* (debugging|informational)#]

So it seems that it doesn't like the OR operator in Regex, even though it is a supported operator in Java 1.4.2 Regex (which should be supported as per the documentation)

Thanks \\ Naman

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
Joe Clarke Fri, 09/21/2007 - 09:41

The regexp "logging buffered .* debugging|informational" should not work. However, "logging buffered .* (debugging|informational)" does work just fine. Maybe you had a typo.

mnlatif Fri, 09/21/2007 - 11:46

you are right...!

I did have a typo and had a 'space' between '.*' and '(...'.

Thanks for pointing in the right direction..

\\ Naman

Actions

This Discussion