Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

using regex in bash conditional statement

pat="[0-9a-zA-Z ]"
if [[ $x =~ $pat ]]; then ...
 
PREVIOUS NEXT
Tagged: #regex #bash #conditional #statement
ADD COMMENT
Topic
Name
5+4 =