From: alsontra@hotmail.com
Date: Sat Aug 28 2004 - 00:37:09 GMT-3
My bad, you are correct. It is the "*" proceeding the [0-9] that makes the
clause optional. Interestingly enough, a question mark proceeding the
"[0-9]" expression would have had the same effect.
Thanks
Alsontra
----- Original Message -----
From: "Carlos G Mendioroz" <tron@huapi.ba.ar>
To: <gladston@br.ibm.com>
Cc: <ccielab@groupstudy.com>
Sent: Friday, August 27, 2004 2:38 PM
Subject: Re: ^1 ?[0-9]*$
> The star (*) means 0 or more, so in the extreme, [0-9]* may be removed.
> This leaves you ^1_$ which is equal to ^1$ because _ matches either
> space, start or end.
>
> Makes sense ?
>
>
> gladston@br.ibm.com wrote:
> > I undertood that this expression matches AS starting with 1 and ending
with any number; should have two ASs. It matches 1_6 or 1_7 or 1_9...
> > When changing to ^1_?[0-9]*$ it matches 1 and 1_6.
> > Any tip?
> >
> > r3#sh ip bgp regexp ^1 [0-9]*$
> > BGP table version is 32, local router ID is 172.16.3.3
> > Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
> > Origin codes: i - IGP, e - EGP, ? - incomplete
> >
> > Network Next Hop Metric LocPrf Weight Path
> > * i192.168.40.0 172.16.34.4 100 0 1 6 i
> > *> 172.16.23.2 0 1 6 i
> > r3#
> > r3#sh ip bgp regexp ^1_[0-9]*$
> > BGP table version is 32, local router ID is 172.16.3.3
> > Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
> > Origin codes: i - IGP, e - EGP, ? - incomplete
> >
> > Network Next Hop Metric LocPrf Weight Path
> > * i150.1.0.0 172.16.34.4 0 100 0 1 i
> > *> 172.16.23.2 0 1 i
> > * i192.168.40.0 172.16.34.4 100 0 1 6 i
> > *> 172.16.23.2 0 1 6 i
> >
> > _______________________________________________________________________
> > Please help support GroupStudy by purchasing your study materials from:
> > http://shop.groupstudy.com
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
>
>
> --
> Carlos G Mendioroz <tron@huapi.ba.ar>
>
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
This archive was generated by hypermail 2.1.4 : Fri Sep 03 2004 - 07:02:49 GMT-3