# playing on the Desktop cd ${HOME}/Desktop ls ls script* ls *.sh ls *_6* nano solution* ls *.sh *.txt ls s*t* ls [hi]* ls [c-i]* ls [A-Z]* ls -d [A-Z]* # using the "check_regex.sh" script ./check_regex.sh 'this is Bash' 'Bash' ./check_regex.sh 'this is Bash' 'bash' ./check_regex.sh 'this is Bash' '[Bb]ash' ./check_regex.sh 'this is Bash' '[Bb]' ./check_regex.sh 'this is Bash' '[^Bb]' ./check_regex.sh 'this is Bash' '[^Kk]' ./check_regex.sh 'this is Bash' '[Kk]' ./check_regex.sh 'this is Bash' '[aeiou]' ./check_regex.sh 'this is Bash' '[^aeiou]' ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "[0-9]{4}-[0-9]{2}-[0-9]{2}" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "[0-9]{4}(-[0-9]{2}){2}" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "(-[0-9]{2}){3}" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "(-?[0-9]{2}){3}" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "(20[01][0-9]|202[012])-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "(19[5-9][0-9]|20[01][0-9]|202[012])-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "(194[6-9]|19[5-9][0-9]|20[01][0-9]|202[012])-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" $(date +'%F') ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" '$(date +'%F')' ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "$(date +'%F')" ./check_regex.sh "today is 2022-17-02 in ISO 8601 format" "$(date +'%F')" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "^$(date +'%F')" ./check_regex.sh "2022-02-17 in ISO 8601 format" "^$(date +'%F')" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "$(date +'%F')$" ./check_regex.sh "today is 2022-02-17" "$(date +'%F')$" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "^$(date +'%F')$" ./check_regex.sh "2022-02-17" "^$(date +'%F')$" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "$(date +'%Y')" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "$(date +'%d')" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "$(date +'%m')" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "$(date +'-%m-')" ./check_regex.sh "today is 2022-02-17 in ISO 8601 format" "$(date +'%T')" ./check_regex.sh "19:33:01 in ISO 8601 format" "$(date +':%M:')"