regular expression in bgp configuration

Aug 01, 2007 2 Replies

hi there. what string does the regular expression ^(200_)+$ accept? i think it accepts one of more (200_)s, for example "200_", "200_200_", "200_200_200_", and, "200_200_...



200_200_". am i right? if i have wrong idea, please tell me right answer. :)

It allows that ASN to be prepended multiple times.

Chris.

The "^" demands that as 200 is a direct neighbor AS, or first AS in the string, and the "$" demands this is the last AS in the string. So, AS 200 can be prepended, but it must be the only AS number found in the path; there can be no others. IE - the expression will not match on: ^1239 1783

200 200 200 1812$

-ja

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required