regular expressions.

Diez B. Roggisch deets at nospam.web.de
Fri Aug 8 07:40:53 EDT 2008


Atul. schrieb:
> On Aug 8, 4:33 pm, "Atul." <atulskulka... at gmail.com> wrote:
>> On Aug 8, 4:22 pm, Peter Otten <__pete... at web.de> wrote:
>>
>>
>>
>>> 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
>> This is something get when I run it like below. it does not print any
>> output.
>>
>> atul at atul-desktop:~/Work/work/programs$ python fourth.py
>> atul at atul-desktop:~/Work/work/programs$
> 
> ok I get it thats coz, I dont print it. right? when I print it does
> she it.

Yes.

Diez



More information about the Python-list mailing list