title: Can I set <p:inputMask> (Primefaces) a mask to write none, one, two or three characters?
body: <p>I know this mask: <code>99-999-9</code></p>
  
  <p>I need to edit it a little bit, that I can type this:</p>
  
  <p>Examples:</p>
  
  <pre><code>34-721-4
  
  2-216-8
  
  -12-5
  
  2--5
  
  1-13-7
  </code></pre>
  
  <p>I hope that you'll understand what I mean. </p>
  
  <pre><code>0-2 numbers '-' 0-3 numbers '-' 1 number(required)
  </code></pre>
  
  <p>Any ideas? </p>