I have the following URLs with different types of protocol:
URL=https://example.com
URL=ftp://example.com
URL=ssh://example.com
URL=///filestore/storage
I'm using echo ${URL%://*} to get protocol, but for /// it doesn't work, can't apply multiple regex, please help