[Tutor] Regular Expressions part 2
Brian Wisti
bwisti@hotmail.com
Fri, 19 May 2000 15:46:19 PDT
Hi all,
Okay, so I figured out that re.findall() does a global search. Well and
good.
Now I am on to a new strangeness. Although I can print out the resulting
list, and use "for item in matches" to step through the list, I cannot use
array notation to access the list that results from a re.findall().
For some strange reason, this thing that looks like an array (it even has a
length of 2) tells me about "list index out of range" when I try to access
matches[0].
Umm... what am I missing now?
Thanks,
Brian Wisti
bwisti@hotmail.com
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com