This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Cirrus Regex pattern for ignoring blank lines with whitespaces

Our ASA config change reports are running too long since whenever we make changes through ASDM, it introduces several blank lines. Most often the entire configuration file is displayed as Config change, even though the changes were only on few lines.

The inbuilt regex for matching blank lines doesn't match this since there are up to 15 blank spaces in the in the empty lines whereas the regex just matches for line with no character.


I tried several regexes including the ones below but they are unable to ignore blank line with space.


^[ \t]+$

^\s+$

^[ \t][ \t]*$

^[\s]+$

 

But none of these seems to match. What would be the correct regex for ignoring blank lines with whitespaces? I am using NCM 6.0