title: Regex - matching world which contain only vowels or consonants
body: <p>I have problem with regex. I want to match only these words which contains only vowel or consonants. </p>
  
  <p>For example I have strings like this: </p>
  
  <pre><code>aeyiuo 
  aeYYuo 
  qrcbk 
  aeeeee 
  normal 
  Text 
  extTT 
  </code></pre>
  
  <p>My regex should match: <code>aeyiuo aeYYuo aeeeee</code></p>
  
  <p>I don't know why my expression doesn't work <code>^[aeyiuo]*|[^aeyiuo]*$</code>
  To check my regexp I use online parsers: <a href="http://www.regexr.com/" rel="nofollow">http://www.regexr.com/</a> or <a href="http://regexpal.com/" rel="nofollow">http://regexpal.com/</a></p>
  
  <p>If somebody could explain me my mistake, I would be very grateful. </p>