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