Detect number and wrap specific function?
<p>We have functions to format telephone numbers, I am looking to create an if statement to switch which functions to use..</p>

<p>Here are 2 example phone numbers:</p>

<p><code>1300123456
0412345678</code></p>

<p>If the number begins with 04, we want to wrap the string inside <code>formatMob()</code></p>

<p>If the number begins with 1300, we want to wrap the string inside <code>formatLocal()</code></p>

<p>Whats the best way to do a detect on these numbers?</p>
