Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

RegEx to ignore spacing

$
0
0

Greetings.

 

My supreme ruler has tasked me with creating a compliance report on a few class-maps with NCM. All is well except for the fact that some versions of cisco IOS prefer to space the lines in the configuration different than others. for instance,

 

class GENERAL-DATA

  set ip dscp af11

  bandwidth percent 20

  queue-limit 512 packets

 

will render also as

 

class GENERAL-DATA

  set ip dscp af11

bandwidth percent 20

  queue-limit 512 packets

 

Since i've been matching on exact strings (no REGEX experience), the compliance report trips every time. I've browsed through the appendix of the NCM Administrator Guide, but truth be told I don't have the time to grasp this basic concept of creating a multiline REGEX that ignores the spacing on each line. Can someone throw me a bone here?

 

Thank you,

 

Anakin Skywalker


Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>