09-21-2007 06:54 AM
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
09-21-2007 09:41 AM
The regexp "logging buffered .* debugging|informational" should not work. However, "logging buffered .* (debugging|informational)" does work just fine. Maybe you had a typo.
09-21-2007 11:46 AM
you are right...!
I did have a typo and had a 'space' between '.*' and '(...'.
Thanks for pointing in the right direction..
\\ Naman
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide