cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1170
Views
0
Helpful
1
Replies

Detailed Regular Expression Examples for Baseline Config LMS 2.5.1

Michael.Rush
Level 1
Level 1

Can someone provide a site, or post here some detailed examples of how to use regular expressions in baseline config? Everything that I have found is lacking in detail and explaination. Specifically I am trying to write an expression that will cover both "no ip domain-lookup" and "no ip domain lookup" Thanks!

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

First, the regexp you need:

[#no ip domain[- ]lookup#]

As for guides, I highly recommend the O'Reilly book, Mastering Regular Expressions. There are also plenty of online references. Since we use the Perl-compatible suite of regular expressions, something like http://www.perl.com/doc/manual/html/pod/perlre.html will be helpful.

View solution in original post

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

First, the regexp you need:

[#no ip domain[- ]lookup#]

As for guides, I highly recommend the O'Reilly book, Mastering Regular Expressions. There are also plenty of online references. Since we use the Perl-compatible suite of regular expressions, something like http://www.perl.com/doc/manual/html/pod/perlre.html will be helpful.

Getting Started

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco