title: RegEx for exactly two or three words
body: <p>Could someone help me out with this?</p>
  
  <p>At first I was trying to figure out how to simply check for input containing one or two words, and I was able to find that that would be with <code>\w* ?\w+</code> and for containing exactly two words would be with <code>\w+ \w+</code> And I got to something like this (which is not working):</p>
  
  <p><code>/^$|^([a-zA-ZčČćĆđĐšŠžŽ -])\w+ \w+$/</code></p>
  
  <p>What I've since figured out is that it should contain not one or two, but two or three words. And since I was unable to figure out the RegEx for two words to start with, I had to ask for help here.</p>
  
  <p>Like I said, I need it to allow entering only <strong>two or three</strong> words with no numbers and with the addition of these letters <strong>čČćĆđĐšŠžŽ</strong> and a <strong>-</strong></p>
  
  <p>Also I need it to ignore a blank input, that's why <code>^$|</code> is there.</p>
  
  <p>I am really, really new at this, so any help would be appreciated.</p>
  
  <p>EXAMPLES:</p>
  
  <ul>
  <li>Marko Marković</li>
  <li>John Smith</li>
  <li>Mary-Jane Austin</li>
  <li>John III Johnson</li>
  </ul>