Re: A matter of a regular Expression

From: Jonathan Greenwood II <gwood83_at_gmail.com>
Date: Wed, 15 Apr 2009 15:56:18 -0700

Hey Aly,

Here is another simplified expression for your question:

^100 ?[0-9]*$

HTH

Jonathan Greenwood II
CCIE #22744

On Sun, Apr 12, 2009 at 11:54 PM, <aly.groupstudy_at_gmail.com> wrote:

> Hello all,
>
> I was working on a task asking to accept only BGP updates from AS100 and
> its
> directly connected AS
>
> Solution guide makes use of this regular expression ^100(_[0-9]+)?$
>
> I used a simpler different solution ^100_[1-9]*$
>
> I think my solution seems to work.
>
> Can anyone confirm the difference between the 2 methods used and if one has
> any
> advantage over the other
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

-- 
Jonathan Greenwood II
CCIE #22744
Blogs and organic groups at http://www.ccie.net
Received on Wed Apr 15 2009 - 15:56:18 ART

This archive was generated by hypermail 2.2.0 : Mon May 04 2009 - 07:39:12 ART