RE: regexp fun (multiple solutions)

From: ying c (bf5tgh1@xxxxxxxxx)
Date: Sat Aug 24 2002 - 12:55:33 GMT-3


   
Brian,

I even could not come up a single case. Take the first
solution and break them down:

^1000_(.*_)?100_(.*_)?10$

? = 0 0 => ^1000_100_10$
? = 0 1 => ^1000_100_(.*_)10$
? = 1 0 => ^1000_(.*_)100_10$
? = 1 1 => ^1000_(.*_)100_(.*_)10$

I know we can replace (.*_) with (.*) and still get
the same result, but I think they pretty much cover
all the ground, so what exactly is missing?

Thanks,
Chang

--- Brian Dennis <brian@5g.net> wrote:
> Brian,
> You said "all routes originated in AS 10, passed
> through AS 100, and
> learned from AS 1000", right? There are cases where
> your regular
> expressions won't meet the criteria ;-)
>
> Brian Dennis, CCIE #2210 (R&S/ISP Dial)
>
> -----Original Message-----
> From: nobody@groupstudy.com
> [mailto:nobody@groupstudy.com] On Behalf Of
> Brian McGahan
> Sent: Thursday, August 22, 2002 9:06 PM
> To: msnyder@revolutioncomputer.com; 'Bauer, Rick'
> Cc: ccielab@groupstudy.com
> Subject: RE: regexp fun (multiple solutions)
>
> Try these:
>
> ^1000_(.*_)?100_(.*_)?10$
>
> ^1000_(|.*_)100_(|.*_)10$
>
> ^1000_([0-9]+_)*100_([0-9]+_)*10$
>
> Brian McGahan, CCIE #8593
> Director of Design and Implementation
> brian@cyscoexpert.com
>
> CyscoExpert Corporation
> Internetwork Consulting & Training
> http://www.cyscoexpert.com
> Voice: 847.674.3392
> Fax: 847.674.2625
>



This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:48:36 GMT-3