Bash's built in regular expression matching doesn't work when the pattern is quoted.