Comment Comment by mVChr No, but the `-r` option makes it use extended regex[1]. Here's some PCRE: cat file | perl -ne 'print if s/(\w+) (\d+)/\1 is \2 years old/' My only point is sometimes old school standard tools are plenty.1: https://www.gnu.org/software/sed/manual/sed.html#Extended-re... parent mVChr 10 years ago
1: https://www.gnu.org/software/sed/manual/sed.html#Extended-re...