Network Change & Configuration Management

Reply
Accepted Solution

Is there a guide for using RegEx config searches?

Guru
Posts: 61
3403     1

Is there a published guide on using the regex functionality in Config Searches?  Help only says you can use regex, but doesn't detail what is actually supported.

 

I need to search for a line within a block of code and none regex variations i've tried bring anything back. do the 'm' and 's' flags work for multi-line searching?

 

Highlighted

Re: Is there a guide for using RegEx config searches?

Adviser
Posts: 407
3403     1

Here is an example Smiley Wink

 

I'm not sure it those options are allow

 

^line vty \d+ \d+\n(?:\s[^\n]+\n)*(?:\sexec-timeout \d+ \d+\n)/m<

 

 

Looking at VTY settings to see if exec-timeout is in the config




 

 

Sif

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh
Showing results for 
Search instead for 
Do you mean 

Recommended for You