[nsp] bgp regexp

From: Jon Lewis (jlewis@inorganic5.fdt.net)
Date: Wed Sep 16 1998 - 12:26:28 EDT


I'm fine tuning some of my BGP route maps and wanted to have an ip as-path
filter with a line like:

ip as-path access-list 10 permit _10674_([0-9]+)?$

According to
http://www.cisco.com/univercd/cc/td/doc/product/software/ios11/pbook/papregxp.htm

      ? Matches 0 or 1 occurrences of the pattern.

However, ? is special to IOS's CLI meaning "show me how I might complete
the current command" and I can't seem to enter a ? in a regexp in either
exec mode or config mode. Is there some trick? I've tried playing with
\? '?' "?" and a few other variations without success.
 
For now, I'm just doing the above as 2 lines

ip as-path access-list 10 permit _10674_[0-9]+$
ip as-path access-list 10 permit _10674$

but I'd like to condense it to one line.

------------------------------------------------------------------
 Jon Lewis <jlewis@fdt.net> | Spammers will be winnuked or
 Network Administrator | drawn and quartered...whichever
 Florida Digital Turnpike | is more convenient.
______http://inorganic5.fdt.net/~jlewis/pgp for PGP public key____



This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:13:18 EDT