I have some text inside of a span tag in an html file
I need to extract it, I tried this so far but it doesn't seem to work:
Html:
"<span id=\"MainContent_lblGenAssessment\">$866,250</span></dd>"
I tried this:
gsub(x = "<span id=\"MainContent_lblGenAssessment\">$866,250</span></dd>"r,pattern = ">(.*?)<",replacement = "\\1")
But it seems useless, How can I extract the 866,250?
Edit: it must use the default R libraries, I can't install any packages.