RE: regular expression once more

From: Jonathan V Hays (jhays@jtan.com)
Date: Thu Jul 17 2003 - 14:25:11 GMT-3


The square brackets match a single character. Within the brackets you
must include a list of characters you want to match.

Examples:

match even characters: [02468]
match odd characters: [13579]
match one through five: [1-5]
match letters a through h: [a-h]

You could have a regular expression within the square brackets, but it
should evaluate to a nonredundant list of numbers of letters to be of
any use or make any sense. And whatever is within the brackets is
matched against a single character.

HTH,

Jonathan

> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> Behalf Of Alvarez, Rolando [NCSUS]
> Sent: Thursday, July 17, 2003 12:38 PM
> To: 'Chen Kwong Wai William'; Pete Yeargin (pyeargin);
> 'Connie Nie'; ccielab@groupstudy.com
> Subject: RE: regular expression once more
>
>
> How about this:
>
> ip as-path access-list 1 permit _[^(100)].*$
>
> Thanks,
> RA
>
> -----Original Message-----
> From: Chen Kwong Wai William [mailto:kwchen@netvigator.com]
> Sent: Thursday, July 17, 2003 12:34 PM
> To: Pete Yeargin (pyeargin); 'Connie Nie'; ccielab@groupstudy.com
> Subject: Re: regular expression once more
>
>
> Hi,
>
> Just want do know if it is necessary to enclose the 100 with
> parenthesis.
>
> Will
>
> ----- Original Message -----
> From: "Pete Yeargin (pyeargin)" <pyeargin@cisco.com>
> To: "'Connie Nie'" <CNie@EPLUS.com>; <ccielab@groupstudy.com>
> Sent: Friday, July 18, 2003 12:05 AM
> Subject: RE: regular expression once more
>
>
> > Connie,
> >
> > What about "ip as-path access-list 1 permit _[^100]$"?
> >
> > Pete
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]
> On Behalf Of
> > Connie Nie
> > Sent: Thursday, July 17, 2003 11:55 AM
> > To: ccielab@groupstudy.com
> > Subject: regular expression once more
> >
> >
> > Anyone know how can you match something like "routes NOT
> originated from
> > AS 100"---------I know you can deny those come from as 100
> and permit
> > the rest of it, but can it be done in one expression?
> >
> > Thanks,
> >
> > Connie
> >
> >
> >
> ______________________________________________________________
> _________
> > You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> >
> ______________________________________________________________
> _________
> > You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> ______________________________________________________________
> _________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
> ______________________________________________________________
> _________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Wed Aug 06 2003 - 06:52:43 GMT-3