I have this URL:
If you see there are 9 bars from .com to .htm And I want to replace ALL that URL to make it dissapear. Something like this:
<?
preg_replace ('theRegexRequired', '', $url);
?>
My try but I don't know how to code so many bars:
preg_replace('/http://exampleFixed.helloFixed.com\/(.+)\/endFixed.htm/i','',$url);
Thank you very much!
'/http:\/\/exampleFixed.helloFixed.com…(i.e., put a backslash before every slash in the regex)? – Scott Dec 13 '12 at 22:57