I’ve got a Regex expression:
/<fin-streamer(?:.*?)active="">(\d+[,]?[\d.]+?)</fin-streamer>/
that I am hoping will be able to find the below share price in a string:
<fin-streamer class="livePrice svelte-mgkamr" data-symbol="LSEG.L" data-testid="qsp-price" data-field="regularMarketPrice" data-trend="none" data-pricehint="2" data-value="9336" active><span>9,336.00</span></fin-streamer>
But it doesn’t seem to work. Does anyone have any ideas why?
Thanks in advance!
The output of this should simply be 9,336.00
but it doesn’t work. I’m not sure why!
New contributor
PH Corporate is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.