I have two types of possible lines to get information from:
<td class="forecast">106.2%</td>
or
<td class="forecast"></td>
And I want to get what is inside, it can be something, like a number, or it can be exactly nothing, not even a white space.
I have the following piece of regular expression:
<td class=\"forecast\">\\s*(.+?)\\s*</td>
It works, when there is content inside the HTML cell, but if there is nothing, it gets the following part of the HTML code.
Does someone knows how to solve this?