Re: regexp vs quote-regexp

From: maureen schaar (maureen.schaar@gmail.com)
Date: Thu Apr 19 2007 - 06:52:13 ART


Hi,
If you want to use a pipe after the regular expression, this would be
wrongly interpreted if the regexp was not between quotes. By putting
the regexp in between quotes, the cli knows where the regexp starts en
ends.

I tried it on one of my routers and this does seem to be the case:

router1#sh ip bgp regexp ^$
BGP table version is 39, local router ID is 10.1.10.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network Next Hop Metric LocPrf Weight Path
*> 10.1.10.7/32 0.0.0.0 0 32768 ?
*> 10.1.13.24/30 0.0.0.0 0 32768 ?
*> 10.1.13.28/30 0.0.0.0 0 32768 ?
*> 10.2.4.0/24 10.2.254.1 0 32768 ?
*> 10.2.254.0/23 0.0.0.0 0 32768 ?
router1#sh ip bgp regexp ^$ | i 32768
<nothing>

router1#sh ip bgp quote-regexp "^$" | i 32768
*> 10.1.10.7/32 0.0.0.0 0 32768 ?
*> 10.1.13.24/30 0.0.0.0 0 32768 ?
*> 10.1.13.28/30 0.0.0.0 0 32768 ?
*> 10.2.4.0/24 10.2.254.1 0 32768 ?
*> 10.2.254.0/23 0.0.0.0 0 32768 ?

Maureen

On 4/19/07, Sydney Hawke <sydneyhawke@yahoo.com> wrote:
> Hi All,
>
> What are the differences between these show commands?
>
>
> quote-regexp Display routes matching the AS path "regular expression"
> regexp Display routes matching the AS path regular expression
>
> Best Regards,
>
> Sydney
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue May 01 2007 - 08:28:36 ART