i am using an xpath in python to parse a table from an html file. i am using this xpath :
//td//text()
This give me output as two strings:
['australia', '$3333.99']
output i want:
['australia', '3333.99']
but i want $ sign to be stripped of how can i do that in general using xpath? i have tried substring-after
but it does not works.
this is how i tried :
//td//text()[substring-after(.,'$')]
but i got this output:
['$3333.99']
Australia
was missing from the result