use grep in extended regular expression mode

Without the -E the pattern needs to be escaped.