RE: regular expression once more

From: Jonathan V Hays (jhays@jtan.com)
Date: Thu Jul 17 2003 - 13:27:56 GMT-3


http://www.cisco.com/univercd/cc/td/doc/product/atm/c8540/12_0/4a_11a/co
mmand/appc.htm#1051

I think Pete is on the right track. The above URL points out the fact
that the caret (^) inside square brackets means "match every character
except the following."

However, note that a single pair of brackets matches only a single
character.
So I think you would need [^1][^0][^0].*$ to match everything except
100.
The .* at the end considers that there might be ASs in the path with
more than 3 digits.

Comments?

Jonathan

> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> Behalf Of Pete Yeargin (pyeargin)
> Sent: Thursday, July 17, 2003 12:05 PM
> To: 'Connie Nie'; ccielab@groupstudy.com
> Subject: RE: regular expression once more
>
>
> Connie,
>
> What about "ip as-path access-list 1 permit _[^100]$"?
>
> Pete
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> Behalf Of
> Connie Nie
> Sent: Thursday, July 17, 2003 11:55 AM
> To: ccielab@groupstudy.com
> Subject: regular expression once more
>
>
> Anyone know how can you match something like "routes NOT
> originated from
> AS 100"---------I know you can deny those come from as 100 and permit
> the rest of it, but can it be done in one expression?
>
> Thanks,
>
> Connie
>
>
> ______________________________________________________________
> _________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
> ______________________________________________________________
> _________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Wed Aug 06 2003 - 06:52:43 GMT-3