Question- select all city from station table where start and end letter of city must be any vowel (a/e/i/o/u).
The solution which I through: `` SELECT city FROM station WHERE REGEXP_LIKE (city, '^(a|e|i|o|u)$', 'i')```
But this is not Giving any output, I searched for the solution online and here is the working code: `` SELECT city FROM station WHERE REGEXP_LIKE (city, '^(a|e|i|o|u).*(a|e|i|o|u)$', 'i')```
I tried to search online but didn't understood why applying .* in between worked. For my code I think its not working as I am using same sub expression for start(^) and end($).
Can anyone please help me understand the .* working here.