Problem 13. Remove all the consonants
Remove all the consonants in the given phrase.
Example:
Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a a i e u e i';
Solution Stats
Problem Comments
-
17 Comments
Show
14 older comments
Chris Coote
on 10 Apr 2019
The vowels to retain here are, 'a e i o u'. There appears to be confusion for some.
Tianyi Yang
on 8 Sep 2021
To solve this question, the best way is to delete consonants rather than to find 'a e i o u' and other things.
To be honest, although I know why there are two ' in the second test, I don't know how to detect it.
So, I give up and I choose to delete consonants. /(ㄒoㄒ)/~~
Dyuman Joshi
on 25 Jun 2022
@mustafizur because you are not doing what is being asked
Solution Comments
Show commentsProblem Recent Solvers4117
Suggested Problems
-
Remove all the words that end with "ain"
2396 Solvers
-
Check to see if a Sudoku Puzzle is Solved
324 Solvers
-
553 Solvers
-
624 Solvers
-
There are 10 types of people in the world
1150 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!