fromtheinternet Posted July 14, 2014 Posted July 14, 2014 I have an app that grabs forecast data from Yahoo. I've got to the point where I have a list of strings such as the following: [color=#000000]day="Mon" date="14 Jul 2014" low="15" high="19" text="Partly Cloudy" code="30"[/color] [color=#000000][/color][color=#000000]day="Tue" date="15 Jul 2014" low="14" high="21" text="Partly Cloudy" code="30"[/color] [color=#000000][/color][color=#000000]day="Wed" date="16 Jul 2014" low="13" high="21" text="Cloudy" code="26"[/color] [color=#000000][/color][color=#000000]day="Thu" date="17 Jul 2014" low="17" high="24" text="Partly Cloudy" code="30"[/color] [color=#000000][/color][color=#000000]day="Fri" date="18 Jul 2014" low="14" high="21" text="Showers" code="11" What I want to do is break each of those lines down into their own list so I can get the weather for a particular day. But for the life of me, my brain can't figure out a way to put the blocks together to get what I need. If I had some regex, I'd be done by now... [/color]
mikecampbell Posted July 15, 2014 Posted July 15, 2014 Not sure what you mean by "break each of those lines down into their own list"? Should be simple to do if I knew what you meant, could you provide an example of the data structure that you want it to be afterwards?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now