RE: BGP Regular Expression Question

From: Mike Haddad (mike.haddad@hotmail.com)
Date: Wed Mar 12 2008 - 00:00:41 ARST


Hello,

  I honestly see that both of them will match the 1723 and directly connected
customers. The () are just doing some grouping here which I don't find it very
beneficial. As I mentioned I will lab it and then let you know the difference.
I don't want to give wrong info.

Regards,
> Subject: RE: BGP Regular Expression Question> Date: Tue, 11 Mar 2008
09:00:30 +0000> From: Phillip.Day@ipitomi.com> To: Tim@1c-solutions.com;
mike.haddad@hotmail.com; ccielab@groupstudy.com> > Perhaps I'm showing my rust
with regular expressions, but wouldn't> ^1723_[0-9]+$ match 1723 with one or
more directly connected neighbors?> So then if a prefix came through which
just originated in 1723 then it> would not be matched by the expression
whereas it would be matched by> ^1723(_[0-9]+)?$. Please feel free to correct
me if I've misunderstood.> > -----Original Message-----> From:
nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of> Timothy
Chin> Sent: 11 March 2008 06:23> To: Mike Haddad; ccielab@groupstudy.com>
Subject: RE: BGP Regular Expression Question> > The ? means zero or one
instance and the + means one or more instances.> So if you use the ()
characters you are grouping the expression and> basically stating zero or one
instance of that grouping. The second> expression basically states the same
thing but without the grouping. You> would still get the same results: Any
AS-Path beginning with 1723 and> ending with another AS number of any amount
of characters.> > Tim> > -----Original Message-----> From:
nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of> Mike
Haddad> Sent: Tuesday, March 11, 2008 1:58 AM> To: ccielab@groupstudy.com>
Subject: BGP Regular Expression Question> > Is there any difference between
the below:> ^1723(_[0-9]+)?$ As 1723 and directly connected
customers^1723_[0-9]+$> Does it> mean the same?> > Thanks in advance,> >



This archive was generated by hypermail 2.1.4 : Tue Apr 01 2008 - 07:53:53 ART