[28952] in North American Network Operators' Group
Re: Regular Expressions ......
daemon@ATHENA.MIT.EDU (John Fraizer)
Fri May 26 11:33:58 2000
Date: Fri, 26 May 2000 11:30:53 -0400 (EDT)
From: John Fraizer <nanog@EnterZone.Net>
To: Ally Gudgeon <alison.gudgeon@kingston-internet.net>
Cc: nanog@merit.edu
In-Reply-To: <008301bfc6f1$de4a6a20$87a132d4@kingstoninternet.co.uk>
Message-ID: <Pine.LNX.3.96.1000526112726.21542A-100000@Overkill.EnterZone.Net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: owner-nanog-outgoing@merit.edu
On Fri, 26 May 2000, Ally Gudgeon wrote:
>
> (ALSO: If I do a sh ip bgp reg ^[0-9]*_[0-9]*$ it lists both 1-deep and
> 2-deep AS's....surely it should just list 2-deep?)
>
> Any help would be greatly appreciated!......
>
> Thanks in advance..
>
>
> Ally
If sh ip bgp regexp "your regexp" doesn't do what you expect it to do, it
is certainly not going to work in an as-path access-list. I am not the
regexp master so, I can only tell you to tinker at the command line with
your regexp and when the output meets what you want, THAT's the regexp you
should then use in your access-list.
John