/ Published in: PHP
Useful when using user-submitted URLs
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
# Fix the URL: From: google.com www.google.com google.com/ http://google.com http://www.google.com http://www.google.com/ To: http://www.google.com http://www.google.com http://www.google.com http://www.google.com http://www.google.com http://www.google.com
URL: http://www.themer.me/blog/scripting/460/clean-url-with-regex