Cheers,
I want to thank those who replied to my previous questions. As I play with regular expression more, one thing comes up:
How do we find something NOT including a pattern? i.e.
<a href = " http://www.yahoo.com" >.....
<a href= investment.html >.....
<a href = "/books/search.asp?isbn=12345678" >.....
......
I want to parse a html page with all links similar to the above and get the values of href. So I don't want anything after the '='. Note that the right side values come in different format, some quoted, some don't, some start with http and some don't, some with space and some don't.
I was using explode but it didn't work for the third case. Any simple way to extract values here? Can I use preg_match in one step?
Thanks!