pfr specifically, grep --perl-regexp gives me this error Is there a *BSD equivalent option? (can provide context if necessary)
pin pfr About a year ago, I've enabled the -P flag on ripgrep, you could use that instead. Base grep on NetBSD does not support this option, as you already found out.
JuvenalUrbino pfr are you sure you can't do it with egrep? Or printf? If not, you use plain perl -nle. See perlrun, and this tutorial