title: Grails field pattern for different time formats
body: <p>I'm trying to use patterns for my gsp file in Grails. I want to check if the time entered is in the correct format.
  For example: 12.15 == 12:15 == 12,15 == 12-15 and so on.</p>
  
  <pre><code>&lt;g:field type="text" name="startTime" class="date" pattern="\\$##:##"/&gt;
  &lt;g:field type="text" name="endTime" class="date" pattern="[0-9]{2}:[0-9]{2}" /&gt;
  </code></pre>
  
  <p>That's my code. The patterns are just some trys.
  Maybe someone knows a solution.</p>
  
  <p>Greetings
  Nik</p>