title: Regex, That Matches No more Than n Occurrences
body: <p>I'm trying to find a Regex, that matches no more than n consecutive, say three, for example, occurrences of a character; in the case of three and character is "a":<br>
  abbaa - matches;<br>
  ammaaa - doesn't match(three consecutive a's), there is one "a", but whole expression must be discarded because three "a's"</p>
  
  <p>Thank you.</p>