<div dir="ltr">These will match identically.<div><br></div><div>The only difference will be the second will set $1 to 123456789, the first will not.</div><div><br></div><div>Brackets are only needed if you either want to capture part of the match into $1 etc, or you want to match against multiple possibilities (this|orthis).</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 January 2014 08:03, Richard Mace <span dir="ltr"><<a href="mailto:richard.mace@gmail.com" target="_blank">richard.mace@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">
When you are setting up an inbound route, should you put brackets round the destination_number or not? </div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">That is, which of theses entries is correct/safer/will work?</div>
<div class="gmail_default"><pre style="font-family:arial,helvetica,sans-serif"> <condition field="destination_number" expression="^123456789$> </pre><pre style="font-family:arial,helvetica,sans-serif">
<span style="font-family:arial">or</span></pre><pre style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial"> </span> <condition field="destination_number" expression="^(123456789)$></pre>
<pre style="font-family:arial,helvetica,sans-serif"><br></pre><pre style="font-family:arial,helvetica,sans-serif">Thanks in advance</pre><span class="HOEnZb"><font color="#888888"><pre style="font-family:arial,helvetica,sans-serif">
Richard</pre></font></span></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>