title: regex expression to accept ENTER key in string
body: <h2>Issue</h2>
  
  <hr>
  
  <p>I am having an issue creating a regex to accept any string and the ENTER key, at the moment i have this:</p>
  
  <pre><code>^$|^.+$
  </code></pre>
  
  <p>I have looked around and people have said to add <code>\n</code> but this does not work.</p>
  
  <p>An example of the string is should allow is as follows:</p>
  
  <pre><code>Hello this is a test string
  
  
  and i want this to be accepted
  </code></pre>