Matching words starting and ending with same vowel letter
<p>I am trying to come up with a regex to match words starting and ending with same vowel. My question is, is this an elegant all-encompassing solution or am i missing something? So far this is what I have come up after a quick brainstroming. My preferred environment is javascript/python without special libraries etc. Thanks for helpful suggestions.</p>
<ul>
<li>soln. 1)  <code>re = /(^[aeiou])\w+\1/i;</code></li>
<li>soln. 2)  <code>re = /(^[aeiou])[a-zA-Z]+\1/i;</code></li>
<li><code>console.log(re.test(&quot;abcda&quot;));  //true</code></li>
<li><code>console.log(re.test(&quot;abcdo&quot;));  //false</code></li>
</ul>