Answers for "bash regex match"

0

bash regex match

if [[ "test" =~ ^(.*)(.[a-z]{1,5})$ ]]; 
then 
  echo "matched"; 
else 
  echo "Not matched"; 
fi
Posted by: Guest on February-04-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language