"^820_.*_12" means:
1) advertised from AS 820
2) as-path length greater than 2 (because of two spaces)
3) in third place or higher, at least one AS in as-path begin with "12"
"820 1546 9612 12" match all three statements (in AND logic)
If you want to match an originator AS, use "$" at the end of regex. Without
"$" there is an implicit ".*" at the end of regexp.
HTH,
mirco.
originated or passed through AS that begin with "12"
On Wed, Mar 24, 2010 at 8:14 PM, David Prall <dcp_at_dcptech.com> wrote:
> The * is 0 or more of the previous character, + is 1 or more of the
> previous
> character. Search the archives, this has been gone over a number of times.
>
>
> http://www.cisco.com/en/US/docs/ios/12_2/termserv/configuration/guide/tcfaap
> re.pdf<http://www.cisco.com/en/US/docs/ios/12_2/termserv/configuration/guide/tcfaap%0Are.pdf>
>
> David
>
> --
> http://dcp.dcptech.com
>
>
> > -----Original Message-----
> > From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
> > Ryan West
> > Sent: Wednesday, March 24, 2010 2:55 PM
> > To: Abiola Jewoola; ccielab_at_groupstudy.com; nobody_at_groupstudy.com
> > Subject: RE: REG EXPRESSION
> >
> > Abiola,
> >
> > Going off the top of my head here, so hopefully it's right :)
> >
> > . = any character
> > *= 1 or more occurrences of the previous character
> > _ = space or non alphanumeric character
> > ^ = starts with this character
> >
> > So, starts with 820 followed by a space, then a range of characters,
> > followed
> > by a space and then 12.
> >
> > -ryan
> >
> > From: Abiola Jewoola [mailto:biola_y2k_at_yahoo.com]
> > Sent: Wednesday, March 24, 2010 2:51 PM
> > To: ccielab_at_groupstudy.com; nobody_at_groupstudy.com; Ryan West
> > Subject: RE: REG EXPRESSION
> >
> > Please can you please explain how and why ?
> >
> > Thanks!!
> >
> > --- On Wed, 3/24/10, Ryan West <rwest_at_zyedge.com> wrote:
> >
> > From: Ryan West <rwest_at_zyedge.com>
> > Subject: RE: REG EXPRESSION
> > To: "Abiola Jewoola" <biola_y2k_at_yahoo.com>, "ccielab_at_groupstudy.com"
> > <ccielab_at_groupstudy.com>, "nobody_at_groupstudy.com"
> > <nobody_at_groupstudy.com>
> > Date: Wednesday, March 24, 2010, 11:42 AM
> > As David pointed out, that will match.
> >
> > -ryan
> >
> > From: Abiola Jewoola [mailto:biola_y2k_at_yahoo.com]
> > Sent: Wednesday, March 24, 2010 2:42 PM
> > To: ccielab_at_groupstudy.com; nobody_at_groupstudy.com; Ryan West
> > Subject: RE: REG EXPRESSION
> >
> > The As path is 820 1546 9612 12
> >
> > --- On Wed, 3/24/10, Ryan West <rwest_at_zyedge.com> wrote:
> >
> > From: Ryan West <rwest_at_zyedge.com>
> > Subject: RE: REG EXPRESSION
> > To: "Abiola Jewoola" <biola_y2k_at_yahoo.com>, "ccielab_at_groupstudy.com"
> > <ccielab_at_groupstudy.com>, "nobody_at_groupstudy.com"
> > <nobody_at_groupstudy.com>
> > Date: Wednesday, March 24, 2010, 11:32 AM
> >
> > > -----Original Message-----
> > > Sent: Wednesday, March 24, 2010 2:22 PM
> > > To: ccielab_at_groupstudy.com; nobody_at_groupstudy.com
> > > Subject: REG EXPRESSION
> > >
> > > Hello G,S
> > >
> > > I came across this question .am not sure what the answer is.
> > >
> > > Will this Regular expression " ^820_.*_12" match the As Path
> > 8201546961212.
> > >
> > > Explain??
> > >
> >
> >
> > Are you sure that's the AS Path?
> >
> >
> > Blogs and organic groups at http://www.ccie.net
> >
> > _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Fri Mar 26 2010 - 11:19:10 ART
This archive was generated by hypermail 2.2.0 : Thu Apr 01 2010 - 07:26:36 ART