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.

RegEx Help match string except when

Hey all,

I am hoping someone out there can help me fix my RegEx string.  I am searching for all interfaces with a particular description except I want to exclude when the description contains a (dot) followed by a decimal number.  I would think the could be written like this.

"interface.*\n.*description DS[13][^\.]"

An example of an interface that should be included by the RegEx search.
interface Multilink1
 description DS1NT-1234567

An example of an interface that should be excluded by the RegEx search.
interface Serial0/0/0
 description DS1NT-1234567.01