title: Validate Email,Phone and PAN number in single Input field in angular 7 form control
body: <p>so i want to create one input field which will tell the which type it is like mobile or email or PAN no.,so how can we do this in formcontrol</p>
  
  <p>i tried using regex pattern but its not working</p>
  
  <pre><code>&lt;form [formGroup]="validates_input"&gt;
  &lt;mat-form-field&gt;
      &lt;input matInput placeholder="Enter Email/ PAN / PAN"&gt;
    &lt;/mat-form-field&gt;
  &lt;/form&gt;
  &lt;button&gt;Submit&lt;/button&gt;
  </code></pre>