Fix regexp to work with GNU grep

GNU grep interprets the given pattern as a basic regular expression by default.
So, it does not recognize `\d` syntax without -P option.
This patch replaces some grep patterns with basic regular expressions.