How can I extract URLs from webpage and want that all url should be from some specific site only like "www.abc.com/32432/file.zip" it should search abc.com and the extenstion can zip,rar,001
any help?
xor83
0
Newbie Poster
Recommended Answers
Jump to PostAlright, since you responded with a great example of how to do it with regular expressions, I guess I can provide an xpath example using the DOM as i mentioned previously.
<?php $sUrl = '
All 4 Replies
mschroeder
251
Bestower of Knowledge
Team Colleague
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
mschroeder
251
Bestower of Knowledge
Team Colleague
xor83
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.