Isn't re.findall supposed to find all?

June Kim junaftnoon at
Sat Nov 11 00:08:26 CET 2000

>>> z='abcde[abcdefrdofhd]kdeioslkdfj[sdkfj]dkj'
>>> p=re.compile('(\[.*\])')
>>> result=re.findall(p,z)
>>> result

I expected something like ;

The chances are I've done something wrong, but can't
tell what it is yet. What do you say?

Best regards,


More information about the Python-list mailing list