Hello, I am in immediate need of PHP code that will use regex to parse a string, recognize a hyperlink, and then replace the URL within that hyperlink with a different URL. Example String = "<p>Unfortunately, you can't make $20,000 monthly stuffing envelopes...if only it were that easy. But, you can make <strong>$50,000 a month</strong> running your own personal internet business <em>and</em> start earning money in less than an hour. <a target="_new" href="http://www.ohwhatascam.info">Click here to discover how</a>.</p>" In the above string I have underlined the hyperlink. I would want the URL in the hyperlink (http://www.ohwhatascam.info) changed to (http://www.my-secret-corner.com). The regex should be able to recognize ANY URL following the "href=" and replace it with "http://www.my-secret-corner.com". This includes COM/NET/ORG/INFO/Etc. So basically, I'm looking to change ALL URLs to a specific URL. I will pay $10 via Paypal to the first person who can give me a working solution. Thank you!
Thank you I'm open for php services : http://forums.digitalpoint.com/showthread.php?p=11541059 Thanks