Re: Difference between "?" and "*" in BGP regular expression

From: Ivan (ivan@iip.net)
Date: Mon Feb 27 2006 - 07:31:54 GMT-3


1) in this case no defferent
you match as-path consist 1 or 2 as-es
^254_([0-9]*)$ - mean AS 254 and second AS can consist any number digits (*)
from 0 up to 9
^254(_[0-9]+)?$ - mean AS 254 and second AS can consist at least 1 digits (+)
from 0 up to 9 and resulting number can exist or not (?).

2) braces need to define to wich logical block apply (?). If braces is omitted
then (?) will be applied to (+) wich is not defined.

On Monday 27 February 2006 10:56, Evgeniy Voloshin wrote:
> Hi group,
>
> 1. can you explain me difference between "?" and "*" for examlpe
> ^254_([0-9]*)$
> ^254(_[0-9]+)?$
>
> 2. why I must use parenthesis "(" and ")" in my regexp? Is it for
> private AS only?
>
> ---
> WBR,
> Yev.
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

-- 
Ivan


This archive was generated by hypermail 2.1.4 : Wed Mar 01 2006 - 11:28:18 GMT-3