Possible Duplicate:
php regex to get string inside href tag
I have a text file where there are multiple occurrences of href tag.
I wish to get the content of these
href='...'
and print it to screen.
How can I achieve that? The main problem is writing a correct regex.
Here you go:
Now you have all unique hrefs in
$all_href;if you want to display them: