title: JSF <h:inputTextArea> problems with enter key/regex validator
body: <p>I have a <code>&lt;h:inputTextArea&gt;</code> with an <code>&lt;f:validateRegex&gt;</code> tag inside.</p>
  
  <p>Whenever an enter key is pressed inside the text area for a new line and then the  submit button is pressed it shows that the textArea is invalid even though it shouldn't be invalid.</p>
  
  <p>I removed the <code>&lt;f:validateRegex&gt;</code> tag from inside the textArea and everything worked fine so the issue is there but i do not have enough experience with regex to solve this problem so any help would be greatly appreciated, here is the part of code where i am having this problem:</p>
  
  <pre><code>&lt;h:inputTextarea value="#{supportBean.userRequest.contents}"
                              id="contents" required="true" validatorMessage="#{msgs['supportform.contents.invalid']}"
                              requiredMessage="#{msgs['supportform.contents.invalid']}"
                              rows="6" &gt;
                              &lt;f:validateRegex pattern="\s*?[a-zA-Z-'א-ת]{2,}+.*" /&gt;
                          &lt;/h:inputTextarea&gt;
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The input text area is for a comment in a contact us form.</p>
  
  <p>I did not create this regex pattern and i am not 100% sure of what its supposed to do but i need to make sure the user only enters english character, hebrew characters, numbers, spaces or new lines and the current pattern works very poorly.</p>
  
  <p>So in order to fix this problem i need a new pattern allowing what i have described above.</p>