[cisco-voip] Destination Pattern Question
Jonathan Charles
jonvoip at gmail.com
Mon Feb 5 17:48:30 EST 2007
>From that page:
Circumflex symbol (^)—When used within brackets, allows you to eliminate a
digit from consideration for dial peer matching purposes. For example, a
destination pattern including [^7] would not match any string beginning with
7
Jonathan
On 2/5/07, Lelio Fulgenzi <lelio at uoguelph.ca> wrote:
>
> It was very counter intuitive that's for sure.
>
> Can you send a link where you got that Jonathan?
>
> Here's one that talk's about a specific example, but goes against the
> [^abc] example.
>
>
> http://www.cisco.com/univercd/cc/td/doc/product/software/ios123/123cgcr/vvfax_c/int_c/dpeer_c/dp_confg.htm
>
>
> Specifically,
>
> A destination pattern including [^752] would allow matching only for digit
> strings beginning with 5 or 2, but would not match any digit strings
> beginning with 7. This destination pattern entry essentially behaves the
> same way as if you had simply included [52] in the destination pattern.
>
>
>
> ----- Original Message -----
> *From:* Jonathan Charles <jonvoip at gmail.com>
> *To:* CarlosOrtiz at bayviewfinancial.com
> *Cc:* cisco-voip <cisco-voip at puck.nether.net>
> *Sent:* Monday, February 05, 2007 5:34 PM
> *Subject:* Re: [cisco-voip] Destination Pattern Question
>
> The first two regular expression characters I learned were ^ and $
> (beginning and ending of a string)... (BGP).
>
> To be honest, I can't see how someone could say that the ^ means NOT...
>
> However, I just found this:
>
> [^ ] Matches a single character that is not contained within the brackets.
> For example, [^abc] matches any character other than "a", "b", or "c".
> [^a-z] matches any single character that is not a lowercase letter.
>
> So, we are wrong, they are right... we suck.
>
>
>
>
> Jonathan
>
> On 2/5/07, CarlosOrtiz at bayviewfinancial.com <
> CarlosOrtiz at bayviewfinancial.com> wrote:
> >
> > I agree with your assessment. Just trying to confirm to convince
> > others.
> > ------------------------------
> >
> > ----- Original Message -----
> > * From: *"Jonathan Charles" [jonvoip at gmail.com]
> > * Sent: *02/05/2007 04:25 PM CST
> > * To: *Carlos Ortiz
> > * Cc: *cisco-voip at puck.nether.net
> > * Subject: *Re: [cisco-voip] Destination Pattern Question
> >
> > The ^ matches the beginning of a string.
> >
> > The [ ] match a range.
> >
> > So, my thinking would be that the [^9] should match anything that begins
> > with a 9
> >
> > However, so would:
> >
> > 9...
> >
> > To match the not-9 do this:
> >
> > [1-8]...
> >
> >
> >
> > Jonathan
> >
> > On 2/5/07, CarlosOrtiz at bayviewfinancial.com <CarlosOrtiz at bayviewfinancial.com>
> > wrote:
> > >
> > >
> > > Can someone confirm what this statement does? It was added with the
> > > idea that everthing will match except anything beginning with 9. From what
> > > I read it looks like it will match all ext's beginning with 9.
> > >
> > > destination-pattern [^9]...
> > >
> > > Carlos
> > > _______________________________________________
> > > cisco-voip mailing list
> > > cisco-voip at puck.nether.net
> > > https://puck.nether.net/mailman/listinfo/cisco-voip
> > >
> > >
> >
> > _______________________________________________
> > cisco-voip mailing list
> > cisco-voip at puck.nether.net
> > https://puck.nether.net/mailman/listinfo/cisco-voip
> >
> >
> >
> ------------------------------
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/cisco-voip/attachments/20070205/99383d21/attachment-0001.html
More information about the cisco-voip
mailing list