That page is wrong.<br><br>For the example given:<br><br> The route pattern 813510[^0-5] routes or blocks all numbers in the range 8135106 through 8135109.<br><br>This should block all patterns 8135100 through 8135105.<br>
<br>Because the pattern, [^0-5] says NOT anything that has 0 through 5 in that position...<br><br>Here are the other examples I have from Cisco:<br><br>[^756] matches anything that begins with a 5 or 6<br><br>[^4][^5][^6] matches the string 456
<br><br>Now, I do not have an exact match for the [^0-5] but it indicates to me that, following the patterns above, it should NOT match the range 0 through 5.<br><br>Someone correct me if I am wrong.<br><br><br>Jonathan<br>
<br><div><span class="gmail_quote">On 2/5/07, <b class="gmail_sendername">Jason Burton</b> <<a href="mailto:jburton@netechcorp.com">jburton@netechcorp.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You are correct the ^ character matches every but whats contained.<br><br>Looking in the 4.1(3) system guide you will find the following<br><br>The circumflex (^) character, used with the square brackets, negates a range of values. Ensure that it is the first character following the opening bracket ([).
<br><br>Each route pattern can have only one ^ character.<br><br> The route pattern 813510[^0-5] routes or blocks all numbers in the range 8135106 through 8135109.<br><br><a href="http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_administration_guide_chapter09186a00803edabe.html#wp11697">
http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_administration_guide_chapter09186a00803edabe.html#wp11697</a><br><br><br><br><br>________________________________<br><br>From: <a href="mailto:cisco-voip-bounces@puck.nether.net">
cisco-voip-bounces@puck.nether.net</a> on behalf of Jonathan Charles<br>Sent: Mon 2/5/2007 5:34 PM<br>To: <a href="mailto:CarlosOrtiz@bayviewfinancial.com">CarlosOrtiz@bayviewfinancial.com</a><br>Cc: cisco-voip<br>Subject: Re: [cisco-voip] Destination Pattern Question
<br><br><br><br>The first two regular expression characters I learned were ^ and $ (beginning and ending of a string)... (BGP).<br><br>To be honest, I can't see how someone could say that the ^ means NOT...<br><br>However, I just found this:
<br><br>[^ ] 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.
<br><br>So, we are wrong, they are right... we suck.<br><br><br><br><br>Jonathan<br><br><br>On 2/5/07, <a href="mailto:CarlosOrtiz@bayviewfinancial.com">CarlosOrtiz@bayviewfinancial.com</a> <<a href="mailto:CarlosOrtiz@bayviewfinancial.com">
CarlosOrtiz@bayviewfinancial.com</a>> wrote:<br><br> I agree with your assessment. Just trying to confirm to convince others.<br><br><br>________________________________<br><br> ----- Original Message -----
<br> From: "Jonathan Charles" [<a href="mailto:jonvoip@gmail.com">jonvoip@gmail.com</a>]<br> Sent: 02/05/2007 04:25 PM CST<br> To: Carlos Ortiz<br> Cc: <a href="mailto:cisco-voip@puck.nether.net">
cisco-voip@puck.nether.net</a><br> Subject: Re: [cisco-voip] Destination Pattern Question<br><br><br><br> The ^ matches the beginning of a string.<br><br> The [ ] match a range.<br><br> So, my thinking would be that the [^9] should match anything that begins with a 9
<br><br> However, so would:<br><br> 9...<br><br> To match the not-9 do this:<br><br> [1-8]...<br><br><br><br> Jonathan<br><br><br> On 2/5/07, <a href="mailto:CarlosOrtiz@bayviewfinancial.com">
CarlosOrtiz@bayviewfinancial.com</a> < <a href="mailto:CarlosOrtiz@bayviewfinancial.com">CarlosOrtiz@bayviewfinancial.com</a> <mailto:<a href="mailto:CarlosOrtiz@bayviewfinancial.com">CarlosOrtiz@bayviewfinancial.com
</a>> > wrote:<br><br><br> 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.
<br><br> destination-pattern [^9]...<br><br> Carlos<br> _______________________________________________<br> cisco-voip mailing list<br> <a href="mailto:cisco-voip@puck.nether.net">
cisco-voip@puck.nether.net</a><br> <a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br><br><br><br><br><br> _______________________________________________
<br> cisco-voip mailing list<br> <a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br> <a href="https://puck.nether.net/mailman/listinfo/cisco-voip">https://puck.nether.net/mailman/listinfo/cisco-voip
</a><br><br><br><br><br><br></blockquote></div><br>