Bash Regex mecz

if [[ "test" =~ ^(.*)(\.[a-z]{1,5})$ ]]; 
then 
  echo "matched"; 
else 
  echo "Not matched"; 
fi
Testy Tortoise