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><div><span class="gmail_quote">On 2/5/07, <b class="gmail_sendername"><a href="mailto:CarlosOrtiz@bayviewfinancial.com">
CarlosOrtiz@bayviewfinancial.com</a></b> <<a href="mailto:CarlosOrtiz@bayviewfinancial.com">CarlosOrtiz@bayviewfinancial.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;">
<font face="courier new" size="2"><p>I agree with your assessment. Just trying to confirm to convince others.<br></p></font><hr><span class="q"><font face="courier new" size="2"><p> ----- Original Message -----<br><b> From:
</b>"Jonathan Charles" [<a href="mailto:jonvoip@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jonvoip@gmail.com</a>]<br><b> Sent: </b>02/05/2007 04:25 PM CST<br><b> To: </b>
Carlos Ortiz<br><b> Cc: </b><a href="mailto:cisco-voip@puck.nether.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cisco-voip@puck.nether.net</a><br><b> Subject: </b>Re: [cisco-voip] Destination Pattern Question
<br></p></font><br></span><span class="q">
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></span><div><span class="q"><span class="gmail_quote">On 2/5/07, <b class="gmail_sendername"><a href="mailto:CarlosOrtiz@bayviewfinancial.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
CarlosOrtiz@bayviewfinancial.com</a></b> <<a href="mailto:CarlosOrtiz@bayviewfinancial.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
CarlosOrtiz@bayviewfinancial.com</a>> wrote:</span></span><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="sans-serif" size="2">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.</font>
<br>
<br><font face="sans-serif" size="2">destination-pattern [^9]...</font>
<br>
<br><font face="sans-serif" size="2">Carlos</font><br>_______________________________________________<br>cisco-voip mailing list<br><a href="mailto:cisco-voip@puck.nether.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
cisco-voip@puck.nether.net</a><br><a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://puck.nether.net/mailman/listinfo/cisco-voip</a>
<br><br></blockquote></span></div><br>
<br>_______________________________________________<br>cisco-voip mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">
https://puck.nether.net/mailman/listinfo/cisco-voip</a><br><br><br></blockquote></div><br>