OS X Lion droped support for 'grep -P, this is an alternative solution to using grep with Perl regexps.