Hi, I want to extracted some data from a web site, specifically Cities and Postal Codes. Can someone help me how should I do? I know that I have used regular expression, but now we urgently need. I do not want all the script, just a few ideas what should be written for cities and codes. Or a code that does that. Thanks in advance, george
I do not know how to make simple xml function, if you give a little more. So I did: file_get_contents () and I extract all the pages. But now I do not know how to extract data which I need only name city and cod zip. Thanks Or one where the regular expression tutorial shows how to extract data from a page. Please help me. I searched the internet and not found. Thanks Best Regards, george
There isn't a magic general-purpose regular expression that will automatically extract the content you want from any web site. You have to look at the HTML source code of the web page, use your brain to see what the patterns are, and then write a regular expression to fit them.