Echo pipe grep considered harmful

Just like my last pull request, only with a different ugly thing.

bash has builtin regular expression matching, so you don't need to say "echo $THING | grep stuff"; you can just use the =~ operator of the [[ ]] builtin.