Re: BGP Reg Exp

From: Manny Gonzalez (manny@xxxxxxx)
Date: Sun Apr 14 2002 - 23:25:20 GMT-3


   
glmorris,

I believe your second and third entries are misleading. The actually
mean ORIGINATING from those ASs but they do not necessarily need to be
connected to you. For that to be true, you would need a "^" instead of
"_"

so:

^10[5-9]$
^10[569]$

mean that they were received DIRECTLY from this AS(s)

Also, in your example for _100_200 I also feel that could be misleading.
If you do not place that underscore also at the end of the string, it
will also match the following:

50 100 200 30
10 30 100 200 15
25 100 2002 200 10
100 2000 200 10 5

etc. etc. Meaning that if you do not somehow close the string on the
right hand side, it can match anything there that looks like
"200(anythingelse)"

For the last example, I believe the correct expression would be:

^1_[0-9]*$

Once again, if you leave a space and not the "_" it will match 1, 11,
100, 1938, etc. etc.

If I am incorrect, an expert will probably chime in shortly :-)



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