Remove any kind of url from string in php? <p>I am having below data.</p> <p>Example 1</p> <pre><code>From : http://de.example.ch/biz/barbar-vintage-z%C3%BCrich I want: /biz/barbar-vintage-z%C3%BCrich </code></pre> <p>And also if there is</p> <pre><code>http://www.example.ch/biz/barbar-vintage-z%C3%BCrich </code></pre> <p>Then I also want</p> <pre><code> /biz/barbar-vintage-z%C3%BCrich </code></pre>