From: Evgeny Tantsura (ivgen@castel.nl)
Date: Thu Dec 19 2002 - 20:54:40 GMT-3
. - Matches any single character, including white space.
* - Matches 0 or more sequences of the pattern.
+ - Matches 1 or more sequences of the pattern.
^ - Matches the beginning of the input string.
$ - Matches the end of the input string.
_ - Matches a comma (,), left brace ({), right brace (}), left
parenthesis, right parenthesis, the beginning of the input string, the end
of the input string, or a space.
Use ()
Example :
AS path :received from AS 200/originating in AS 20/could also be other
AS's in the path.
^200(.*)20$
>
>
>
> Regular Expressions:
>
> ^200$
> Match only AS
WRONG !!! Should be .*
> ^*
> ^^^^^^ Match all AS
> ^$
> Local AS only
> ^200_
> Match strings
> received from AS 200
> _200$
> Match strings
> originating from AS 200
> _200_
> Match strings
> which include AS 200
> ^200_210$
> Match strings
> received from 200 AND
> originating
> from 210
>
>
>
> My understanding is you use "^" if the originating AS directly connected AS
> and use "_" if there could be other AS's in the path. Let's say the
> originating AS is 777, then
> ^777$ means directly from 777 however
>
> _777$ could be the following
>
> 777
> 100 777
> 200 100 777
> 200 300 400 777 etc meaning it originated from xxx but could also be other
> AS in the path.
>
>
>
>
>
>
>
>
> >From: Evgeny Tantsura <ivgen@castel.nl>
> >Reply-To: Evgeny Tantsura <ivgen@castel.nl>
> >To: rehan u nedaria <rehannedaria@rediffmail.com>
> >CC: <ccielab@groupstudy.com>
> >Subject: Re: Regular expression help
> >Date: Thu, 19 Dec 2002 13:37:05 +0100 (CET)
> >
> >http://www.cisco.com/univercd/cc/td/doc/product/atm/c8540/12_0/13_19/cmd_ref/appc.htm
> > > Can any one suggest be a site where i can get sample complicated
> > > example on bgp regular expression..
> > >
> > > Regards
> > > Rehan
> > > .
> >With kind regards/ met vriendelijke groeten,
> >------------------------------------------------
> >E. Tantsura
> >Network Developer
> >Essent Kabelcom N.V.
> >Dr.van Deenweg 84
> >8025BN Zwolle, The Netherlands
> >Tel: +31-(0)38-850-7642
> >Fax: +31-(0)38-850-7410
> >Mob: +31-(0)6-290-80458
> >------------------------------------------------
> >.
> _________________________________________________________________
> MSN Search, le moteur de recherche qui pense comme vous !
> http://search.msn.fr/worldwide.asp
>
With kind regards/ met vriendelijke groeten,
------------------------------------------------
E. Tantsura
Network Developer
Essent Kabelcom N.V.
Dr.van Deenweg 84
8025BN Zwolle, The Netherlands
Tel: +31-(0)38-850-7642
Fax: +31-(0)38-850-7410
Mob: +31-(0)6-290-80458
------------------------------------------------
.
This archive was generated by hypermail 2.1.4 : Fri Jan 17 2003 - 17:21:49 GMT-3