title: Limit the number of words with regular expression
body: <p>The regular expression which you gave: <code>^(?:\b\w+\b[\s\r\n]*){1,250}$</code>
  to limit 250 words over multiple lines works if it doesn't have any special characters.</p>
  
  <p>What should I do if I need to search for number of words which also consists special characters? Something like this an example:</p>
  
  <pre><code>--&gt; Hi! i need help with regular expression, please help me. &lt;--
  </code></pre>