====== Regular expressions ====== * Double square brackets * regular expression without quotes if [[ "$string" =~ [0-9]+ ]]; then echo MATCH fi