fork download
  1. #!/bin/bash
  2. echo "https://""one-two-three-four-five.dev.domain.com" | \
  3. sed -E "s~(https?://)([[:alnum:]_-]*)(.*)~Group1: \1\nGroup2: \2\nGroup3: \3~"
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
Group1: https://
Group2: one-two-three-four-five
Group3: .dev.domain.com