--perl-regexp is needed

This is an important fix: -P flag is needed to work properly!