Re: regex question for bgp

From: James (james@towardex.com)
Date: Tue Oct 12 2004 - 01:00:32 GMT-3


On Mon, Oct 18, 2004 at 08:31:34PM -0700, John Matus wrote:
> let me get this straight.....that says...
> match beginning with AS 5 and one or more instance of [0-9]*......heck i
> don't quite see it.
> ^5_[0-9]*$ make a bit more sense to me.....at least i think i can
> understand the syntax.
>
> if you wanted to extend the as-path to include AS 6 connected to as 5 + one
> additional as would the syntax be ^5_6_[0-9]*$ ?
>
> or if you wanted to have two unknow as-s after AS 5 would the syntax for
> that be
> ^5_[0-9]*_[0-9]*? ?
>
> i'm i getting that right? i'm trying to get the feel for
> this........thanks!!!
>
>

^5_[0-9]*_[0-9]*$
 
Use $ to terminate, not "?"

HTH,
-J

-- 
James Jun                                            TowardEX Technologies, Inc.
Technical Lead                        Network Design, Consulting, IT Outsourcing
james@towardex.com                  Boston-based Colocation & Bandwidth Services
cell: 1(978)-394-2867           web: http://www.towardex.com , noc: www.twdx.net


This archive was generated by hypermail 2.1.4 : Sat Nov 06 2004 - 17:11:46 GMT-3