Updated the regex to make it compatible with ruby 1.8

Additional power is added to this regex as it will now also cleanup
additional slashes right after the https:// and http:// parts :)