Re: could you explain to me about bgp Regular expression

From: Marko Milivojevic (markom@vodafone.is)
Date: Wed Jul 04 2007 - 06:40:09 ART


> ^([0-9]+)(_\1)*$
>
> This AS path list selects updates from the neighboring AS (with 2 digits)
> and with 0 or more repetions of itself.

It is not constrained to two digits only. Regex "+" parameter just states
that previous item can match "one or more times". To constrain match to two
digits only, other form must used. It would look like this: "[0-9]{2}?". As
far as I am aware, IOS doesn't support {n} limiter.



This archive was generated by hypermail 2.1.4 : Sat Aug 18 2007 - 08:17:39 ART