I need a regular expression for replacing multiple forward slashes in a URL with a single forward slash, excluding the ones following the colon

e.g. http://link.com//whatever/// would become http://link.com/whatever/

Edit
Report