GroupStudy.com GroupStudy.com - A virtual community of network engineers
 Home  BookStore  StudyNotes  Links  Archives  StudyRooms  HelpWanted  Discounts  Login
Re: ^54(_[0-9]+)?$ or ^54(_[0-9]+)*$ or something else posted 08/25/2006
[Chronological Index] [Thread Index] [Top] [Date Prev][Date Next] [Thread Prev][Thread Next]


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@xxxxxxxxxxxx> 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