title: Regex match count of characters that are separated by non-matching characters
body: <p>I want to count characters, but they may be separated by characters that do not match.</p>
  
  <p>Here is an example.
  I want to match a text that has 10 or more word-characters. It may include spaces but i don't want to count the spaces.</p>
  
  <p>Should <em>not</em> match: "foo bar baz" (should count 9)<br>
  Should <em>not</em> match: "a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a" (should count 2)<br>
  Should match: "foo baz bars" (should count 10, match whole string)</p>
  
  <p>This is what i came up with, but it counts the whole thing:</p>
  
  <pre><code>((?&lt;=\s)*\w(?=\s)*){10}
  </code></pre>
  
  <p><strong>Edit</strong> I do not want to include spaces for counting. Sorry I edited this a few times, I didn't describe it correctly.</p>
  
  <p>Any ideas on this?</p>