title: Validate Regex with minimum length and new line
body: <p>I am trying to match string having length > 10</p>
  
  <pre><code>var value = "Lorem Ipsum is simply dummy text of the printing and type";
  /^.{10,}$/.test(value);
  </code></pre>
  
  <p>returns true;</p>
  
  <p>But, if I have a string with new line character then it fails. </p>
  
  <p>How can i update regular expression to fix that.</p>
  
  <p>I know I can just check .length > 10 or replace new line with space in value. But, i want to update regular expression.</p>