RE: Regular Expressions

From: Victor Cappuccio (cvictor@protokolgroup.com)
Date: Tue Sep 12 2006 - 16:34:41 ART


Hi David, Sorry but I would thing that both Regular Expression are not the
same.

The first Regular Expression matches this: ^100(_[ 0-9]+)?$
100
100 12
100 12 1 1 1
100 12 1 2
100 12 1 3
100 12 21
100 52 1 2
    
And the second regular expression ^100_[0-9]*$ matches this
100
100 32
100 33
100 44
100 66
100 X <- Only One Time

Please correct me if I'm wrong, but that is what I can understand from the
output from this route-server.gt.ca
Also there is a nice explanation of Regular Expression at IEWB-RS Solutions
Guide Lab 12

Thanks
Victor.-

-----Mensaje original-----
De: nobody@groupstudy.com [mailto:nobody@groupstudy.com] En nombre de David
Timmons
Enviado el: Martes, 12 de Septiembre de 2006 03:14 p.m.
Para: Tim Chan; Fabio Rodrigues; ccielab@groupstudy.com
Asunto: Re: Regular Expressions

Hi,
 
Think these two lines produce the same results. Really it is just saying the
that the originating AS can contain 1 or more numbers between for zero to
nine; however, the set should include the empty string. I would guess that
this type of regular expression would take a little extra processing power.
 
dt

----- Original Message ----
From: Tim Chan <timanji@yahoo.com>
To: Fabio Rodrigues <fleandror2@gmail.com>; ccielab@groupstudy.com
Sent: Tuesday, September 12, 2006 2:01:16 PM
Subject: Re: Regular Expressions

Search for "lookingglass router". You can telnet into these routers and
play with
regular expressions to see how each one differs.

This is one for example. Telnet to "route-server.ip.att.net". They have a
peering with
AS7018, so make sure that is the AS you're using in your expressions.

^7018(_[ 0-9]+)?$
^7018_[0-9]*$

-tim

----- Original Message ----
From: Fabio Rodrigues <fleandror2@gmail.com>
To: ccielab@groupstudy.com
Sent: Tuesday, September 12, 2006 8:11:42 AM
Subject: Regular Expressions

Hi All,

does anyone knows to say the difference of the effect (if exists) of these
two
regular expressions?

^100(_[ 0-9]+)?$
^100_[0-9]*$

Tks,

Fabio.



This archive was generated by hypermail 2.1.4 : Sun Oct 01 2006 - 16:55:40 ART