fixed regex pattern to work with https