title: How to validate fields of form with in play framework
body: <p>I want to make things like put masks and validate using regular expression, or using other way, verify if field is empty, and many other things, in a play form.</p>
  
  <p>For example:</p>
  
  <pre><code>@inputText(
      myForm("anydata"),
      'id -&gt; "anyData",
      '_label -&gt; "Any Data"
  )
  </code></pre>
  
  <p>I want to put a mask of only characters/numbers/etc, and put a mask to format this field. Have some helper of play framework to do this, or some other way?</p>
  
  <p>Thanks in advance.</p>