J'utilise Yahoo! Météo Flux RSS afin d'obtenir les prévisions pour ma ville. Je peux analyser le XML et obtenir la description du temps, mais j'obtenir un résultat comme celui-ci:Analyse de certaines informations de Yahoo! Météo Flux RSS
<img src="http://l.yimg.com/a/i/us/we/52/11.gif"/><br />
<b>Current Conditions:</b><br />
Light Rain, 18 C<BR />
<BR /><b>Forecast:</b><BR />
Tue - PM Thundershowers. High: 25 Low: 16<br />
Wed - Rain. High: 23 Low: 17<br />
<br />
<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Constanta__RO/*http://weather.yahoo.com/forecast/ROXX0034_c.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
Mes compétences regex sont presque nulles, donc je demande un peu d'aide pour analyser les informations suivantes:
- le lien de img src dans la première ligne
- nombre de degress dans la troisième ligne (avant C)
Merci.
un exemple serait génial. Merci! – Psyche
Cela fonctionne, merci beaucoup! – Psyche
Bien sûr, pas de problème –