regular expressions.
Peter Otten
__peter__ at web.de
Fri Aug 8 07:22:35 EDT 2008
Atul. wrote:
>
>> 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
>
> When I key this input in IDLE it works but when I try to run the
> module it wont work.
What's the name of your script? What happens when you run it? Does it print
a traceback? If so, what does it say? Please cut and paste, don't
paraphrase.
Peter
More information about the Python-list
mailing list