Re: BGP regexp - how to find x number or more occurrences of an

From: Marko Milivojevic (markom@markom.info)
Date: Wed Oct 22 2008 - 15:50:00 ARST


> Suppose I wanted to find all routes that have the same AS number in a
> row 8
> or more times...is this possible using regexp?

I don't think that IOS regex engine supports "match N occurences"
syntax that more advanced regex engines (like the one in Perl, for
example) do. If if did support it, it would look something like:

_(12345){8,}

If you want to match 8 times or more, where 8 is fixed, you could do
something like (oh, ugly):

_12345_12345_12345_12345_12345_12345_12345_12345_(12345)*

--
Marko
CCIE #18427 (SP)
My network blog: http://cisco.markom.info/

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sat Nov 01 2008 - 15:35:22 ARST