John Wards wrote:
preg_match("|(The forecast for (.*), (.*) on .*): (.*)\.
(.*)|",$description,$match);
I'd make the .*s .*?s (or add a U), just in case it ever had a new entry
added along the lines of "Last checked by: Mr. Jones"
preg_match_all("| (.*): (.*),|U",$match[5].",",$matches,PREG_SET_ORDER);
This doesn't catch Sunset, due to you forcing that comma. Try:
'| (.*): (.*)(,|\.|$)|U'
(I can't remember if I put the full stop in there just in case, or if I had
an actual example using it, sorry.)
--
ATB,
Matthew | http://www.dracos.co.uk/
-
Sent via the backstage.bbc.co.uk discussion group. To unsubscribe, please
visit http://backstage.bbc.co.uk/archives/2005/01/mailing_list.html.
Unofficial list archive: http://www.mail-archive.com/backstage@lists.bbc.co.uk/