Grep on my osx (2.5.1-FreeBSD) does not support -P (perl regex format), using -E (egrep format) instead