I have am using a program that recieves weather information from Yahoo servcies, in this specific case, weather information for Lisbon (Portugal).
It is imperative that my program receives a set of numbers. However, I am receiving the content in HTML:
<![CDATA[
<img src="http://l.yimg.com/a/i/us/we/52/30.gif"/><br />
<b>Current Conditions:</b><br />
Partly Cloudy, 8 C<BR />
<BR /><b>Forecast:</b><BR />
Wed - Sunny. High: 14 Low: 6<br />
Thu - Sunny. High: 12 Low: 8<br />
Fri - AM Showers. High: 14 Low: 6<br />
Sat - Sunny. High: 15 Low: 7<br />
Sun - Sunny. High: 12 Low: 7<br />
<br />
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Lisbon__PT/*http://weather.yahoo.com/forecast/POXX0016_c.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
]]>
Therefore I have the following questions:
- Is there any regular expression that can help me select only the numbers for
Wed - Sunny. High: 14 Low: 6<br />
temperature? - If 1 cannot be done, are regular expressions just not strong enough for this type of work? 3.If they are not, is there any regular expression that only gives me all the numbers in the file? (The numbers are all I care).
Thanks in advance, Pedro.