regular expressions.
Alexei Zankevich
zancudero at gmail.com
Fri Aug 8 07:23:45 EDT 2008
Use the print statement:
import re
vowel = r'[aeiou]'
print re.findall(vowel, r"vowel")
Alexey
On Fri, Aug 8, 2008 at 2:17 PM, Atul. <atulskulkarni at gmail.com> 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.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080808/8b1f20c1/attachment-0001.html>
More information about the Python-list
mailing list