RE: BGP Reg Exp

From: Bit Gossip (bit.gossip@chello.nl)
Date: Wed Dec 27 2006 - 16:23:14 ART


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