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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: