Regex: Fix duplicate slashes without affecting protocol
Let’s say you want to fix a URL that looks like:    https://www.example.com/my/path//to-file.jpg...
Tags: beginners, php, javascript, regex