Jump to content

Problem Description, Split And Remake Url Link


shobhitjain
 Share

Recommended Posts

hey guys i am bit confused in this problem suppose i have this code<ul><li><a href="http://www.weatherbase.com/weather/weather.php3?s=57219&refer= ">Johnston Island</a><li><a href="http://www.weatherbase.com/weather/weather.php3?s=66019&refer= ">Midway Island</a></ul><ul><li><a href="http://www.weatherbase.com/weather/weather.php3?s=158319&refer= ">Palmyra Atoll</a><li><a href="http://www.weatherbase.com/weather/weather.php3?s=54219&refer= ">Wake Island</a></ul>i scrape this text from the webpage to my localhost using Php simple html Dom.now i have to split all these links ,such that when i click on Midway Island the page is redirected to www.mypage.com.i don't know about using regex ,so how do i split this code to extract url and change it to my url.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...