<tr>
<td>8</td>
<td>
</td>
<td>
3
</td>
<td>
300
</td>
<td>
<a href="javascript:;" onclick="plan_edit("76261");"></a>
</td>
</tr>
<tr>
<td>7</td>
<td>
</td>
<td>
1
</td>
<td>
300
</td>
<td>
<a href="javascript:;" onclick="plan_edit("76246");"></a>
</td>
</tr>
<tr>
<td>5</td>
<td>
</td>
<td>
1
</td>
<td>
300
</td>
<td>
<a href="javascript:;" onclick="plan_edit("76181");"></a>
</td>
</tr>
<tr>
<td>4</td>
<td>
</td>
<td>
1
</td>
<td>
300
</td>
<td>
<a href="javascript:;" onclick="plan_edit("76179");"></a>
</td>
</tr>
<tr>
<td>3</td>
<td>
</td>
<td>
0
</td>
<td>
300
</td>
<td>
<a href="javascript:;" onclick="plan_edit("76176");"></a>
</td>
</tr>
I want to match tests 8 to 3. I wrote this
. feeds_plan_campaign_name = re.findall("""<tr>[.\S\s]*<td>(.*?)</td>[.\S\s]*<td>[.\S\s]*</td>[.\S\s]*<td>[.\S\s]*</td>[.\S\s]*<td>[.\S\s]*</td>[.\S\s]*<td>[.\S\s]*</td>[.\S\s]*</tr>""",feeds_plan_page_data.text,re.S)
print len(feeds_plan_campaign_name)
for k in range(len(feeds_plan_campaign_name)):
print "name1" + feeds_plan_campaign_name[k]
the only printed result is Test 3. Why is that?