Regular Expression for text in between tags
题
I have a QString that I need to parse. This QString is a QNetworkReply object obtained from an URL.
<label id='Today_LastSale1'>$ 21.2401</label>
I need the value 21.2401 from the QString.
I am tried this.
QRegExp rx("<label id='Today_LastSale1'>$ (\\d)</label>");
But it returns -1. Need help with this.
Thanks in Advance!
没有正确的解决方案
不隶属于 StackOverflow