grep -P is only true way
grep --perl-regexp --only-matching pattern some/where/file/name
grep -Po pattern some/where/file/name