title: How to use jQuery input mask plugin with special character regex validation?
body: <p>I want to utilize <a href="https://github.com/RobinHerbots/jquery.inputmask" rel="nofollow">inputmask plugin</a> for special character &amp; maxlength validation for text box. It supports either one. Is there a way to implement this?       </p>
  
  <pre><code>    var pattern = /^[\w\s\/\&amp;\'\-]*$/i;
      $("#example1").inputmask("99-9999999");
      $("#example2").inputmask(pattern);
  </code></pre>