From: Erling Bjontegard (erli-b@online.no)
Date: Fri May 21 2004 - 11:00:09 GMT-3
Hi,
^10_[0-9]*_[0-9]*_[0-9]*$ Will permit prefix with 1 to 4 AS starting with AS
10. Will deny prefix with more than 4 AS.
^10_[0-9]+_[0-9]+_[0-9]+$ Will permit prefix with 4 AS starting with AS 10.
Will deny prefix with more than 4 AS.
^10_[0-9]*_[0-9]*_[0-9]* Will permit prefix with 1 or more AS starting with
AS 10.
^10_[0-9]+_[0-9]+_[0-9]+ Will permit prefix with 4 or more AS starting with
AS 10.
It is easy to test this with command 'sh ip bgp regexp'.
- Erling.
----- Original Message -----
From: "Tony" <aamercado31@yahoo.com>
To: <ccielab@groupstudy.com>
Sent: Friday, May 21, 2004 2:00 AM
Subject: regular expression
> Hi all
>
> deny prefix that have more than 4 AS, so if my
> neighbor AS is 10
>
> ^10_[0-9]*_[0-9]*_[0-9]*$
> or
> ^10_[0-9]*_[0-9]*_[0-9]*
>
> or use the + instead of * for each of the above
>
> Thx
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Domains Claim yours for only $14.70/year
> http://smallbusiness.promotions.yahoo.com/offer
>
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Wed Jun 02 2004 - 11:12:14 GMT-3