I couldn't apply the solution to similar questions I found here. After using this in visual code to scrape an web page with python and lxml
[...]
tree = html.fromstring(browser.page_source)
data = tree.xpath('//tr[@title="something"]/td[2]/text()')
if I print(data), I will get this list. Is data a list ?
['\n                    1.27\n                ', '\n                    1.81\n                ', '\n                    4.90\n                ', '\n
       2.07\n                ', '\n                    2.12\n                ']
My goal is to extract only the number from each string. I have read about a regex function, not sure if it is the solution
replace($MyString, '[^0-9]', '')
 
     
    