The 2 are not the same. ^100_[1-9]*$ does the following:
1) Do not match AS100 Only routes.
2) Without a "0" in [1-9], it won't match AS numbers like 300, 500, 405 etc.
3) The * would match everything. AS100's customer's customers and their
customers etc.
HTH
Naveen.
On Sun, Apr 12, 2009 at 11:54 PM, <aly.groupstudy_at_gmail.com> wrote:
> Hello all,
>
> I was working on a task asking to accept only BGP updates from AS100 and
> its
> directly connected AS
>
> Solution guide makes use of this regular expression ^100(_[0-9]+)?$
>
> I used a simpler different solution ^100_[1-9]*$
>
> I think my solution seems to work.
>
> Can anyone confirm the difference between the 2 methods used and if one has
> any
> advantage over the other
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Mon Apr 13 2009 - 00:12:26 ART
This archive was generated by hypermail 2.2.0 : Mon May 04 2009 - 07:39:11 ART