From: Timothy Chin (Tim@1c-solutions.com)
Date: Tue Mar 11 2008 - 04:23:08 ARST
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