Right heres a little snippet of code to play with the description from the weather feeds. ---- $description = "The forecast for Hartlepool, United Kingdom on Wednesday: sunny intervals. Max Temp: 8°C (46°F), Min Temp: -2°C (28°F), Wind Direction: NW, Wind Speed: 17mph, Visibility: good, Pressure: 1031mb, Humidity: 62%, UV risk: low, Pollution: N/A, Sunrise: 07:08GMT, Sunset: 16:32GMT"; preg_match("|(The forecast for (.*), (.*) on .*): (.*)\. (.*)|",$description,$match); preg_match_all("| (.*): (.*),|U",$match[5].",",$matches,PREG_SET_ORDER); ----- If you print_r out $match and $matches you should see how useful this would be.
It works with the current format of the description the Beeb uses. Cheers John - Sent via the backstage.bbc.co.uk discussion group. To unsubscribe, please visit http://backstage.bbc.co.uk/archives/2005/01/mailing_list.html. Unofficial list archive: http://www.mail-archive.com/backstage@lists.bbc.co.uk/