Re: ^1 ?[0-9]*$

From: alsontra@hotmail.com
Date: Fri Aug 27 2004 - 22:11:57 GMT-3


I think the ? makes the second AS optional. Just a guess.

"question mark ? Matches 0 or 1 occurrences of the pattern. "

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fdial_c/fnsprt13/dafaapre.htm

HTH
Alsontra

----- Original Message -----
From: <gladston@br.ibm.com>
To: <ccielab@groupstudy.com>
Sent: Friday, August 27, 2004 2:08 PM
Subject: ^1 ?[0-9]*$

> 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



This archive was generated by hypermail 2.1.4 : Fri Sep 03 2004 - 07:02:49 GMT-3