#!/bin/bash
menu=0
re='^([a-zA-Z+]+[0-9+]+[&@!#+]+)$'
while [ "$menu" -eq "0" ]; do
read -p "Enter Your Password: " PASS
if [[ ! $PASS =~ $re ]]; then
echo "must contain at least 1 uppercase, one lowercase, one number, and a special character"
else
echo "strong password"
menu=1
fi
done