#!/bin/bash
s='3.6.212.0.dev'
re='^([0-9]+\.){4}(dev|prod)$'
if ! [[ "$s" =~ $re ]] ; then
echo "error: Incorrect version specified; must be in the format of #.#.#.#.env"
else
echo "$s is valid!"
fi
IyEvYmluL2Jhc2gKcz0nMy42LjIxMi4wLmRldicKcmU9J14oWzAtOV0rXC4pezR9KGRldnxwcm9kKSQnCmlmICEgW1sgIiRzIiA9fiAkcmUgXV0gOyB0aGVuCiAgZWNobyAiZXJyb3I6IEluY29ycmVjdCB2ZXJzaW9uIHNwZWNpZmllZDsgbXVzdCBiZSBpbiB0aGUgZm9ybWF0IG9mICMuIy4jLiMuZW52IgplbHNlCiAgZWNobyAiJHMgaXMgdmFsaWQhIgpmaQ==