Re: regular expression

From: ccie2be (ccie2be@nyc.rr.com)
Date: Thu Aug 28 2003 - 10:58:32 GMT-3


Wouldn't _[1,4][2,5][3,6]_ match the following AS's:

123, 126, 153, 156, 423, 426, 453, 456 or put differently, since for each of
the 3 digits there are two possible values, there are a total of 2**3
possible AS's that the above would match?

dt

----- Original Message -----
From: "Cristian Henry H" <chenry@reuna.cl>
To: "Nathaly Landry" <lnathaly@cisco.com>
Cc: "'Chepuri Roshan'" <roshanc@cisco.com>; "'Ram Shummoogum'"
<rshummoo@ca.ibm.com>; <ccielab@groupstudy.com>
Sent: Thursday, August 28, 2003 9:36 AM
Subject: Re: regular expression

> My opinion
>
> ^([1-9]+_)*(123|456)_([1-9]+_)*(123|456)_([1-9]+_)*$
>
> Nathaly Landry ha escrito:
> >
> > Cleaning up my folder, did not see an answer for that one, I
> > think that the reg expression is:
> > Reg exp to only accept routes that have transitted thru AS 123 AND AS
> > 456
> >
> > ^((.+_)*123(_.+)*_456(_.+)*)$|((.+_)*123(_.+)*_456(_.+)*$)
> >
> > Any idea?
> > Nat
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
> > Chepuri Roshan
> > Sent: Thursday, February 20, 2003 11:55 PM
> > To: Ram Shummoogum
> > Cc: ccielab@groupstudy.com
> > Subject: Re:
> >
> > Try _[1,4][2,5][3,6]_
> >
> > At 10:34 PM 2/20/2003 -0500, Ram Shummoogum wrote:
> > >Hi ALL:
> > >
> > >
> > >I need some help on this BGP regular expression.
> > >
> > >
> > >Make a router only accept routes that has transit AS 123 and AS 456.
> > >The keyword here is "and" and not or.
> > >
> > >
> > >Ex: {34 5 6 456 7 99 123 88}
> > > {45 123 89 456 7}
> > >
> > >
> > >
> > >
> > >
> > >I know "OR" is | but what is AND.
> > >
> > >
> > >
> > >
> > >
> > >Thanks for your help
> > >
> > >
> > >RAM
> >
> > _______________________________________________________________________
> > You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
> --
> Cristian E. Henry
> REUNA
>
> E-mail: chenry@reuna.cl
> Fono: 56-2-3370336
>
>
> _______________________________________________________________________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Tue Sep 02 2003 - 18:54:09 GMT-3