RE: Reg Exp 'Any'

From: Pete Yeargin \(pyeargin\) (pyeargin@cisco.com)
Date: Mon Dec 06 2004 - 16:21:22 GMT-3


I believe the only difference between these two strings is that the second
one matches locally generated bgp routes as well as received routes from
other AS's. The first string requires that the route came from an outside
AS since you have a [0-9] range with a "+" which means one or more
occurrences.

 

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Sean
C
Sent: Monday, December 06, 2004 11:07 AM
To: ccielab@groupstudy.com
Subject: Reg Exp 'Any'

Hello,

When applying a regular expression to represent 'any AS', is there a
difference between:
(_[0-9]+)*
(_.+)*

In otherwords, if I had to apply a 'permit any AS' for an as-path ACL after
first going thru AS 2, would either of these statements fulfill the
requirement?

ip as-path access-list 1 permit ^2 (_[0-9]+)* ip as-path access-list 1
permit ^2 (_.+)*

Thanks in advance, Sean

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004


This archive was generated by hypermail 2.1.4 : Mon Jan 03 2005 - 10:31:25 GMT-3