BGP Reg Expressions

From: Gregg Malcolm (greggm@xxxxxxxxxxxxx)
Date: Wed Mar 27 2002 - 15:44:35 GMT-3


   
Folks,

Does anyone have any good tips to help to remember reg expressions ?
Unfortunately, my Unix background is pretty weak. I can remember some of the
simple stuff like .* is all paths, ^$ is local routes (empty), _30_ is routes
that passed thru path 30 , etc.

The CD is very limited with info regarding this. Best CD info I've found is
an appendix in the dial section :
http://127.0.0.1:8080/cc/td/doc/product/software/ios121/121cgcr/dial_r/drdapp
/index.htm

Mostly related to chat scripts from what I see. BTW - I swear that if I see a
chat script on the lab I'll get up and leave immediately.

My confusion is not so much with the meaning of the expressions, but with how
they are interpreted by BGP. For instance, what's the difference between ^30$
and ^30_ ? Is it that ^30$ only matches 30 and nothing else and ^30_ matches
any path with 30 anywhere in it ?

Does anyone have a standard set that they use that is somewhat easy to
remember ?

TIA, Gregg



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:23 GMT-3