I am trying to compare the startup config and the running config from a Cisco 2960. I am trying to get NCM to ignore the crypto section of the 2 configs because they will never match. So far I have had no luck. NCM always compares the crypto sections and shows there is a difference.... Screen shot below....
I have tried several variations of the ignore RegEx expressions and they have not worked. Finally I went to a learn and test RegEx site because I can drag and drop my config file in the test area and create my own RegEx expression. I have a two working RegEx expressions that I created on this site. Both work just fine in the test area but do not work in NCM. My expressions are below.... This is the link to the RegEx learn and test site... http://www.regexr.com/
^crypto pki((.|\n)*)cert.*\s
^crypto pki((.|\n)*)quit.*\s
Basically the expression says Where the characters 'crypto pki' are the first characters on the line capture all line between that and the characters 'cert' for the startup config or 'quit' for the running config. This includes all whitespace characters.
My assumption here is that multiline is enabled with the NCM RegEx engine.... maybe its not....
Any Ideas or suggestions on what I am doing wrong here?