Getting weather report
Posted: Wed Sep 16, 2009 8:12 am
Hello,
I'm trying to get the latest weather report from a website, so when I'm on the move I can see if I'm getting wet or not..:p
Anyways, I've tried lots of patterns already using preg_match_all.. but or I end up getting way too much data or nothing at all.
Yes I kind of suck at it, it's been a while since I last used regexes as well.
I'm trying to get just two parts in the code
Any help would be greatly appreciated... 
I'm trying to get the latest weather report from a website, so when I'm on the move I can see if I'm getting wet or not..:p
Anyways, I've tried lots of patterns already using preg_match_all.. but or I end up getting way too much data or nothing at all.
Yes I kind of suck at it, it's been a while since I last used regexes as well.
I'm trying to get just two parts in the code
Code: Select all
<a href="http://www.site.nl/report/today" title="[b]Report for 15-09-2009 generated at 15:00[/b]" class="weather" target="_blank"><img src="[b]http://www.site.nl/bla/bla/somelocation.jpg[/b]"></a>