12-16-2008, 10:13 PM
.+? will match
Macro
Macro
;out
str Src Message Message2 zipcode url
zipcode="08620" ;;enter your zipcode here
str Forecast
url.from("http://www.weather.com/weather/local/" zipcode "?lswe=" zipcode "&lwsa=WeatherLocalUndeclared&from=whatwhere")
;out url
IntGetFile url Src
;out Src
if findrx(Src "<B class=obsTextA>(.+?)</B>" 0 1 Forecast 1)>=0
,Message.from("Forecast: " Forecast)
,mes(Message "Current Temperature" "isa")