Re: ^54(_[0-9]+)?$ or ^54(_[0-9]+)*$ or something else

From: Plukkie (plukkie@gmail.com)
Date: Fri Aug 25 2006 - 04:55:20 ART


First of all, look at the appendix of the terminal services configuration
guide of the docCD. There's regexp explained.

^54_[0-9]+$ matches only : 54 X
^54_[0-9]*$ matches 54 only and 54 X
^54(_[0-9]+)?$ matches 54 only and 54 X
54(_[0-9]+)*$ matches 54 only and 54 X X X etc

On 8/24/06, CharlesB <cbalik@adelphia.net> wrote:
>
> Guys,
>
>
> I am kind of confused between +,?,* regular expressions.
>
>
> Let's say we are looking for AS 54 and its directly connected ASs:
>
> 1 ) For "54 X" , X is one digit or multiple
>
> ^54_[0-9]+$
>
> or
>
> ^54_[0-9]*$
>
> I think both will be matching.
>
> 2) For "54 X X X"
>
> If directly connected customer's AS is prepending
>
> ^54(_[0-9]+)?$ will only match "54 X"
>
> ^54(_[0-9]+)*$ will match both "54 X" and "54 X X X", am I getting this
> correctly?
>
>
> I am looking for the expression best match for the "54 X X X", this is the
> question I have.
>
> Thanks for any help in advance.
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:58 ART