From: navaid@rogers.com
Date: Tue Sep 16 2003 - 08:46:21 GMT-3
Tim,
I know we can do AND logic with combination of OR and NOT. I think you have tried same but just to confirm if you are using following formula:
A AND B = NOT( NOT A OR NOT B)
I have also noticed that you are using parentheses. What do you think about following expression. I am able to filter routes that contain 2000 and 5000 using this expression.
ip as-path access-list 2 permit _2000_.*_5000_|_5000_.*_2000_
Navaid
>
> From: "Snow, Tim" <timothy.snow@eds.com>
> Date: 2003/09/16 Tue AM 02:10:05 EDT
> To: "'ccielab@groupstudy.com'" <ccielab@groupstudy.com>
> Subject: Regular Expression Trivia
>
> Been searching around the cisco site but am unable to find such an answer
> and it's beginning to bug me.
>
> Does anyone know if there is a "AND" regular expression. I know there is a
> OR (|) but I've tried using two logical NOT's in order to try and come up
> with an AND but to no avail.
>
> Say if you wanted to match a path that contained as 5000 and 2000 in either
> order, rather than using
>
> ip as-path access-list 1 permit (2000)+(_.*)*(_5000)+|(5000)+(_.*)*(_2000)+
>
>
> First instance says matching 2000 then anything then 5000
> After the | comes 5000 then anything then 2000
>
> Rather than doing all the extra work (can anyone confirm if it's correct) is
> there a way to say "must contain 2000 and 5000" in one list?
>
> Tim
>
> ***Get your CCIE and a FREE vacation: Shop.GroupStudy.com***
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
1
***Get your CCIE and a FREE vacation: Shop.GroupStudy.com***
This archive was generated by hypermail 2.1.4 : Wed Oct 01 2003 - 07:24:28 GMT-3