title: Using Regex to validate the number of words in a text area
body: <p>I am attempting to write a MVC model validation that verifies that there is 10 or more words in a string.  The string is being populated correctly, so I did not include the HTML.  I have done a fair bit of research, and it seems that something along the lines of what I have tries should work, but, for whatever reason, mine always seem to fail.  Any ideas as to what I am doing wrong here?</p>
  
  <p>(using System.ComponentModel.DataAnnotations, in a mvc 4 vb.net environment)</p>
  
  <p>Have tried <code>([\w]+){10,}</code>, <code>((\\S+)\s?){10,}</code>, <code>[\b]{20,}</code>, <code>[\w+\w?]{10,}</code>, <code>(\b(\w+?)\b){10,}</code>, <code>([\w]+?\s){10}</code>, <code>([\w]+?\s){9}[\w]</code>, <code>([\S]+\s){9}[\S]</code>, <code>([a-zA-Z0-9,.'":;$-]+\s+){10,}</code> and several more varaiations on the same basic idea.</p>
  
  <pre><code>&lt;Required(ErrorMessage:="The Description of Operations field is required"), RegularExpression("([\w]+){20,}", ErrorMessage:="ERROZ")&gt;
  Public Property DescOfOperations As String = String.Empty
  </code></pre>
  
  <p>Correct Solution was <code>([\S]+\s+){9}[\S\s]+</code></p>