Weather forecast
-
Hello all,
I'm trying to use regular expressions to pull the weather forecast out of the yahoo weather api, link:
https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1) where text%3D"oakbank%2Cmb")&format=json&env=store%3A%2F%2Fdatatables.org%2FalltableswithkeysUsing regex testers, I can pull out the proper data, the high for the next day, using:
forecast.*?[.*?{.*?{.*?high.*?\"(\d+)
however when it's put into mango, it gives this error:
Illegal repetition near index 15 forecast.?[.?{.?{.?high.*?"(\d+) ^has anyone else been able to properly pull forecast weather or see an issue with my regex?
Thanks,
Stephen -
Hi Stephen,
I edited your post because text between asterisks is italic.
The problem is probably caused by your open brace not being escaped. Can you try it with a \ before the {?
forecast.*?[.*?\{.*?\{.*?high.*?\"(\d+)
-
Ya that worked,
Thank you