We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
if u write ''^[aeiou]|[aeiou]$', it will check only start letter vowel or end letter vowel
like abcdfsd, efdsf, osdf(staring one vowel), dsfa, dsde, fghfgo(ending one vowel)
if u remove the pipeline, '^[aeiou][aeiou]$' it will check only start letter vowel end letter vowel and nothing between them
if u write '^[aeiou].[aeiou]$'; adding one dot means start letter vowel or end letter vowel and any one char between them
if u write '^[aeiou].*[aeiou]$'; adding one * means start letter vowel or end letter vowel and any one character repeated 0 or more than 0
Hope, u get it
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 8
You are viewing a single comment's thread. Return to all comments →
if u write ''^[aeiou]|[aeiou]$', it will check only start letter vowel or end letter vowel like abcdfsd, efdsf, osdf(staring one vowel), dsfa, dsde, fghfgo(ending one vowel)
if u remove the pipeline, '^[aeiou][aeiou]$' it will check only start letter vowel end letter vowel and nothing between them
if u write '^[aeiou].[aeiou]$'; adding one dot means start letter vowel or end letter vowel and any one char between them
if u write '^[aeiou].*[aeiou]$'; adding one * means start letter vowel or end letter vowel and any one character repeated 0 or more than 0
Hope, u get it