get_list_of_containers_to_mount container_patterns_to_mount

echo_with_ts "Containers to mount:"
printf "%s\n" "${container_patterns_to_mount[@]-}" 

container_patterns_to_mount=("${container_patterns_to_mount[@]/.blob.core.windows.net/}")
container_patterns_to_mount=("${container_patterns_to_mount[@]/https:\/\//}")
container_patterns_to_mount=("${container_patterns_to_mount[@]/http:\/\//}")

for pattern in "${container_patterns_to_mount[@]}"; do
  acct_and_cont=$(expr "$pattern" : '^[-/]*\([^?]*\)')    # remove leading "-" and "/", and the SAS token
  acct_and_cont=${acct_and_cont/%\//}    # remove trailing "/"