From: Huizinga, Rene (rhuizinga@upcbroadband.com)
Date: Wed Dec 27 2006 - 17:09:59 ART
Hold on, now I'm doing it wrong myself... Confusing stuff... :)
The 2 expressions below should come down to the same AFAIR...;)
'+' = 1 or more occurances
'*' = 0 or more occurances.
-So when wanting a prepended match only (!):
^54_(_1234)+_1234_
-When wanting either one, take one of the 2 below ;)
 Event. Replace the trailing '_' by a '$' or the real source-AS/different AS
behind, when wanting to ensure not another '1234' follows ;)
-When wanting non-prepended only:
^54_1234$ (or the real source-AS/different AS behind)
Cya
-----Original Message-----
From: Huizinga, Rene 
Sent: Wednesday, December 27, 2006 8:49 PM
To: 'Bit Gossip'; ccielab@groupstudy.com
Subject: RE: BGP Reg Exp
Hi Luca,
Not certain if I understand your question correctly, but if you want to
accept all, with AND without prepending, try:
^54(_1234)+_
Or ONLY when prepended:
^54(_1234)*_1234_
In my understanding, this should be correct, correct me if I'm wrong or
please explain your question in case of misunderstandings...
Cya
Rene. 
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Bit
Gossip
Sent: Wednesday, December 27, 2006 8:23 PM
To: ccielab@groupstudy.com
Subject: RE: BGP Reg Exp
I was wandering if it is possible to make the expression smarter so that it
can cope with the customer prepending once or more time; something
like:
54 1234 1234 1234
but not like
54 1234 4321
I couldn't come to any solution....
Luca.
On Wed, 2006-12-27 at 09:11 -0500, Scott Morris wrote:
> Both will work.  Yours does 0 or more of the single character 0-9.  
> The first does one or more, but makes the whole thing optional with 
> the ? (0 or
> 1 of preceeding).
> 
> Different logic, same result!
> 
>  
> Scott Morris, CCIE4 (R&S/ISP-Dial/Security/Service Provider) #4713, 
> JNCIE #153, CISSP, et al.
> CCSI/JNCI-M/JNCI-J
> IPExpert VP - Curriculum Development
> IPExpert Sr. Technical Instructor
> smorris@ipexpert.com
> http://www.ipexpert.com
>  
> 
> 
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf 
> Of JB
> Sent: Wednesday, December 27, 2006 4:59 AM
> To: ccielab@groupstudy.com
> Subject: BGP Reg Exp
> 
> Hi all, question asks for a router to accept prefixes from BB1 that 
> have been originated by themselves and their directly connected customers.
> 
> Solution says: ^54(_[0-9]+)?$
> 
> I got ^54_[0-9]*$.
> 
> I ran mine thru looking-glass and it "seems" to work. I would 
> appreciate it if someone could explain the differences, if any, 
> between the two to further my understanding.
> 
> TIA,
> 
> JB
> 
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
> 
> ______________________________________________________________________
> _ Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Tue Jan 02 2007 - 07:50:39 ART