Re: BGP AS Path Regular Expressions [7:53956]

2002-09-24 Thread Stephane Litkowski
Ok that's clear now !! thank you very much for your help. ""Kent Yu"" a icrit dans le message de news: [EMAIL PROTECTED] > Stephane, > > > As u said, ^(200)+$ will match my ASPATHs but not only ... > > I am afraid that was not what I said :) > > > However, when I configure it, this expression d

Re: BGP AS Path Regular Expressions [7:53956]

2002-09-24 Thread Kent Yu
Stephane, > As u said, ^(200)+$ will match my ASPATHs but not only ... I am afraid that was not what I said :) > However, when I configure it, this expression doesn't match ASPATH prepended > like "200 200 200" (but 200 is present !). The not prepended ASPATH (200 > only) is matched. I don't un

Re: BGP AS Path Regular Expressions [7:53956]

2002-09-24 Thread Stephane Litkowski
Kent, As u said, ^(200)+$ will match my ASPATHs but not only ... However, when I configure it, this expression doesn't match ASPATH prepended like "200 200 200" (but 200 is present !). The not prepended ASPATH (200 only) is matched. I don't understand this behavior. ""Kent Yu"" a icrit dans le

Re: BGP AS Path Regular Expressions [7:53956]

2002-09-24 Thread Kent Yu
Stephane, ^(200)+$ matches 200 or 200200 etc.. Of course, in case of as-path, it will only find 200. You want to use _ to match the space between the as-nums, so IOS will try to match the whole as-path. HTH Kent ""Stephane Litkowski"" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

BGP AS Path Regular Expressions [7:53956]

2002-09-24 Thread Stephane Litkowski
Hi all, I'm trying to find a regexp to match AS PATH including AS200 only, but AS200 can be contained more than one time (AS PATH prepending). Example : 200 -> Match 200 200 -> Match 200 200 200 -> Match 200 200 200 300 -> Don't Match I tried to use this regexp : ^(200)+$ but it doesn't work, wh