|
PHP regular expressions
hi there,
I have a question about regular expressions in PHP. I can now make patters to search whatever I am looking for. But I am looking for a pattern in a page of HTML. the pattern is the following:
$pattern="<a href=[\"]([a-zA-Z0-9/.-]+)[\"]>"
the pattern is just to search the destination of links on a certain webpage, and all the links on the page are formulated in a way that this pattern finds em.
But when i use eregi() it only gives back an array with the data from the first occurence of the pattern. I want an array that gives me all the urls on the page
Matt.
|