From: Carlos G Mendioroz (tron@huapi.ba.ar)
Date: Sun Jul 11 2004 - 14:43:34 GMT-3
No offense taken :-)
Yes, I did, and it was matching on anything inside the brackets.
It seems that SOME IOSs have an enhanced grammar that supports {} for
repetition and | inside () for alternation, so you do have more
expressive power there. In those you could use 12345(00|11)11
or 12345[01]{2}11 for the task being requested, but on most IOSs, trying
any of those will yield with
regular expression must be of the form ^[][0-9,ABCD#*.?+%()-]*T?(\$)?$
I don't know which exact train/version has the enhanced grammar.
There are previous GS threads on this subject.
Tom Rogers wrote:
> Carlos,
> No offense here but am curious, have you ever tried within [ ] ? If not
> ry it out...
> Tom
>
> Carlos G Mendioroz <tron@huapi.ba.ar> wrote:
>
> Doc says that the ONLY thing that can be in [] are numbers.
> It's been said that some IOS support extended grammars, like {} to
> represent repetition, but I have seen no router that supports that.
> So, no, there is no way to get those two numbers and only those.
>
>
> Tom Rogers wrote:
>
> > How about 12345[0011,1111]
> >
> > Mike Calhoon wrote:Hi Geert,
> >
> > I think you are looking for 12345[00,11]11, but someone please
> correct me if
> > I am mistaken.
> >
> > Thanks,
> > Mike
> >
> >
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> Behalf Of
> > Geert Nijs
> > Sent: Sunday, July 11, 2004 10:52 AM
> > To: ccielab@groupstudy.com
> > Subject: Destination Pattern
> >
> > Hello group,
> >
> > I am looking to match the following telephone numbers in ONE
> > "destination pattern" match:
> > 123451111
> > 123450011
> >
> > (if possible at all, don't know....)
> >
> > I was thinking about: destination-pattern 12345[01][01]11
> >
> > but this also matches: 123450111 and 123451011
> >
> > I was also thinking about: destination-pattern 12345[(00)(11)]11
> >
> > but this doesn't work...
> >
> > Any other ideas ??
> >
> > Regards,
> > Geert
> >
> >
> >
> ############################################################################
> > #########
> > This e-mail and any attached files are confidential and may be
> legally
> > privileged.
> > If you are not the addressee, any disclosure, reproduction, copying,
> > distribution,
> > or other dissemination or use of this communication is strictly
> prohibited.
> > If you have received this transmission in error please notify Simac
> > immediately
> > and then delete this e-mail.
> >
> > Simac has taken all reasonable precautions to avoid virusses in
> this email.
> > Simac does not accept liability for damage by virusses, for the
> correct and
> > complete
> > transmission of the information, nor for any delay or
> interruption of the
> > transmission,
> > nor for damages arising from the use of or reliance on the
> information.
> >
> > All e-mail messages addressed to, received or sent by Simac or Simac
> > employees
> > are deemed to be professional in nature. Accordingly, the sender or
> > recipient of
> > these messages agrees that they may be read by other Simac
> employees than
> > the official
> > recipient or sender in order to ensure the continuity of work-related
> > activities
> > and allow supervision thereof.
> >
> ############################################################################
> > #########
> >
> >
> _______________________________________________________________________
> > Please help support GroupStudy by purchasing your study materials
> from:
> > http://shop.groupstudy.com
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> _______________________________________________________________________
> > Please help support GroupStudy by purchasing your study materials
> from:
> > http://shop.groupstudy.com
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> _______________________________________________________________________
> > Please help support GroupStudy by purchasing your study materials
> from:
> > http://shop.groupstudy.com
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
>
> --
> Carlos G Mendioroz LW7 EQI Argentina
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> New and Improved Yahoo! Mail
> <http://us.rd.yahoo.com/mail_us/taglines/10/*http://promotions.yahoo.com/new_mail/static/efficiency.html>
> - Send 10MB messages!
-- Carlos G Mendioroz <tron@huapi.ba.ar> LW7 EQI Argentina
This archive was generated by hypermail 2.1.4 : Sun Aug 01 2004 - 10:11:52 GMT-3