Work with https protocol

Hello!
It's my first pull request. Sorry for possible errors
I have changed several rejex for work with https urls