title: Regular Expression - Allowing enter key (java)
body: <p>In my web application, I want the user to enter only SELECT statements. I am using the following regex to validate the entry.</p>
  
  <pre><code>(^(?i)select.+)(\\w|\\W)
  </code></pre>
  
  <p>The above code makes sure the entry should start with SELECT and then a WHITESPACE
  (Example: SELECT * FROM TABLE1)
  But when the user have the 'ENTER' key while creating query, the regex fails.
  So I want the REGEX to all 'ENTER' key. Can anyone please tell me the syntax for REGEX to allow the user to use 'ENTER' key in text area?</p>