#!/bin/bash
echo "https://""one-two-three-four-five.dev.domain.com" | \
 sed -E "s~(https?://)([[:alnum:]_-]*)(.*)~Group1: \1\nGroup2: \2\nGroup3: \3~"