AngularJS regex for validate a number that should start with 04 and have length of 10 : <p>I am new to angular js and i was working on validating user input. I want the input mobile number to be 10 of length (which i know using ng-maxlength) and number must start with '04'. I need help building the regex for it.
The html code is:</p>

<pre><code> &lt;input ng-pattern="what to write here?" type="text" id="mobile" ng-model="mobile" ng-maxlength="10" ng-minlength="10"  name="mobile" placeholder="Mobile" required class="input-xlarge"&gt;
                            &lt;p ng-show="myForm.mobile.$touched &amp;&amp; myForm.mobile.$invalid" style="color: red"&gt;Must be 10 digit and start with 04.&lt;/p&gt;
</code></pre>
