Regular expression for numbers in AngularJs
<p>I want to use regular expression in AngularJs that accept this three statement : </p>

<pre><code>09344542525 -&gt; 11 length integer that start with 09

02144532363 -&gt; 11 length integer that start with 021

44532363 -&gt; 8 length integer
</code></pre>

<p>Here is my <strong>HTML</strong> :</p>

<pre><code>&lt;div class="container co-operate" ng-controller="cooperationController"&gt;
    &lt;form novalidate name="cooperationForm" class="signinform"&gt;
        &lt;div class="form-group inner-addon right-inner-addon"&gt;
            &lt;label class="form-label control-label"&gt;&lt;/label&gt;
            &lt;input ng-model="restaurantInformation.tel" type="text" name="tel" id="tel" placeholder="phone number"
               ng-pattern="mobRegEx || prePhoneRegEx || phoneRegEx" class="form-control default-input singleline-input" required /&gt;
            &lt;span class="form-icon icon icon-avatar"&gt;&lt;/span&gt;
        &lt;/div&gt;
        &lt;p ng-show="cooperationForm.tel.$error.pattern" style="color: red"&gt;Wrong number format&lt;/p&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p><strong>Angular:</strong></p>

<pre><code>app.controller('cooperationController', function ($scope) {
    $scope.mobRegEx = '/09[0-3][0-9]{8}/';
    $scope.prePhoneRegEx = '/021[0-9]{8}/';
    $scope.phoneRegEx = '[0-9]{8}';
    .
    .
    .
}
</code></pre>

<p>Actually , when my input is dirty and I test integer, error paragraph is always show error. </p>

<p>Any suggestion to modify regular expression?</p>