From: Phillip.McCollum@ins.com
Date: Thu May 01 2008 - 14:17:26 ART
My guess is that ^ represents the beginning of an input string and _ can also represent the beginning of an input string. Therefore, your 4th query is looking for the beginning of the string and then a space while your 3rd query is looking for either a space or beginning of an input string. Anyone know if I'm incorrect in my interpretation?
Phillip
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Rakesh Hegde
Sent: Thursday, May 01, 2008 9:28 AM
To: ccielab@groupstudy.com
Subject: BGP regular expression
Guys,
I've got the following routes in the bgp table
192.168.1.0 100
192.168.2.0 100 100 100
192.168.3.0 100 200 300
1. Sh ip bgp reg (_100_)+ as expected lists all 3 networks
2. Sh ip bgp reg ^(_100_)+ as expected lists all 3 networks
3. Sh ip bgp reg (_100_)+$ as expected lists 192.168.1.0 and 192.168.2.0
4. Sh ip bgp reg ^(_100_)+$ lists only 192.168.1.0 .
Any idea why no 4 is not listing 192.168.2.0 ?
Thanks in advance
-Rakesh
Pass the CCIE in six weeks, Guaranteed!
http://www.certscience.com/CCIE
This archive was generated by hypermail 2.1.4 : Mon Jun 02 2008 - 06:59:15 ART