title: How to get the value without the mask characters in PrimeNg?
body: <p>I am using primeNG UI library for our angular project. I am used primeng mask to format the values.</p>
  
  <pre><code>        &lt;p-inputMask type="text" name="IBANAccount"
                                       #IBANAccount="ngModel"
                                       mask="aa99 9999 9999 9999"
                                       (onBlur)="OnIBANAccountChange()"
                          [ngModel]="CurrentPaymentOutRequest?.IBANAccount"  (ngModelChange)="CurrentPaymentOutRequest.IBANAccount=UnMask($event)"&gt;
  &lt;/p-inputMask&gt;
  </code></pre>
  
  <p>In my Unmask method, I removed the mask values.</p>
  
  <pre><code>UnMask(val) {
      return val.replace(/\s/g, '');
  }
  </code></pre>
  
  <p>I have a few questions. </p>
  
  <p><em>Why mask, binding the mask characters(ex:/,-,etc)?</em></p>
  
  <p><em>Is any other way to handle this globally?, because in future if format change I should change it in all places</em> </p>