a regular expression needed for extracting urls

Any questions involving matching text strings to patterns - the pattern is called a "regular expression."

Moderator: General Moderators

Post Reply
User avatar
shankimout
Forum Newbie
Posts: 3
Joined: Wed Mar 29, 2006 6:21 am
Location: Iran ( Mazandaran )
Contact:

a regular expression needed for extracting urls

Post by shankimout »

hi , thank you for browsing my topic . i have problem whit regular experssion

i need regular exprssion that i can extract page links & images urls from a text with preg_split function .

for example all of src='xxx' & href='xxx'

i wants extract all urls from a web page to save it

second question :

i want to save a web page whit php scripting , do you have classes for this one?

thanks alot
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

my post here may be of interest: viewtopic.php?t=29312
Post Reply