The demo assumes the URL that needs to be cleaned is stored in a database and has been encoded.



Instructions: Click the 'Strip It' button to start the process.

About: The demo takes an encoded url, runs urldecode on it, then uses preg_replace to strip away the ending slash and http:// leaving only the domain.com.

[ View: Strip http:// and / from http://domain.com/ ]