preg_replace() help
Posted: Fri Apr 28, 2006 2:09 pm
Hi
I have got some text that has been scraped from an rss feed.
I want to get parts of the data but not others
I have been using preg replace to remove parts that I do not want but I also want to remove a whole chunk of text that is dynamic.
e.g
I want to change
how do I go about this?
I have got some text that has been scraped from an rss feed.
I want to get parts of the data but not others
I have been using preg replace to remove parts that I do not want but I also want to remove a whole chunk of text that is dynamic.
e.g
I want to change
I want to remove the Current conditionsTonight:
Partly Cloudy.
Low: 4C. Chance of rain: 10%
Tomorrow:
Partly Cloudy.
High: 10C. Low: 5C. Chance of rain: 0%
Current conditions as of 6:50 PM:
Partly Cloudy. Temp: 11C. (feels like 11).
Humidity: 47%
Winds: 16 km/hr.
All times shown are local to Ashford, GBR.
how do I go about this?