It seems straightforward task, but I could not solve. I am fresh at using re module
string1 = 'www Cristian www Bale www'
--- Here is my test string.
pattern1 = '([aıoueəiöü])'
--- Pattern
import re
string1 = 'www Cristian Bale www'
pattern1 = '([aıoueəiöü])'
result = re.findall(pattern1, string1)
print(result)
It results just vowels which words have: ['i', 'i', 'a', 'a', 'e']
My expected output is actually, these words: "Cristian Bale"
.
How can I return these?