Atul. wrote:

> I have been playing around with REs and could not get the following
> code to run.
> 
> import re
> vowel = r'[aeiou]'
> re.findall(vowel, r"vowel")
> 
> anything wrong I have done?

Yes. You didn't paste the traceback into your message.
 
>>> import re
>>> vowel = r'[aeiou]'
>>> re.findall(vowel, r"vowel")
['o', 'e']

It works as expected here.

Peter
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to