Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash regex match

if [[ "test" =~ ^(.*)(.[a-z]{1,5})$ ]]; 
then 
  echo "matched"; 
else 
  echo "Not matched"; 
fi
 
PREVIOUS NEXT
Tagged: #bash #regex #match
ADD COMMENT
Topic
Name
5+7 =