Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Current temperature
#31
.+? will match

Macro
Code:
Copy      Help
;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")


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)