Feb-05-2020, 03:17 PM
FOR EXAMPLE THE FILE IS AS FOLLOWS:
[b]<td class="text-center">28,426</td>
<td class="text-center">240</td>
<td class="text-center">6,893,221</td>
Now say, I use the following code:
x=re.findall('<td\s+class\="text\-center">([0-9.,]+)</td>',x)
print(x)
which will print me all the above numerical values, but I only want to print the 2nd line what so ever the value in it maybe, how do I do it?
Thanks in advance
[b]<td class="text-center">28,426</td>
<td class="text-center">240</td>
<td class="text-center">6,893,221</td>
Now say, I use the following code:
x=re.findall('<td\s+class\="text\-center">([0-9.,]+)</td>',x)
print(x)
which will print me all the above numerical values, but I only want to print the 2nd line what so ever the value in it maybe, how do I do it?
Thanks in advance