I want a Perl one. I never saw the need to do AWK because I knew Perl fairly well.
In saying that the youngsters should learn some of these old school tools. Python is a nice language but the regexes are crap acompared to Perl. I always need to look up the documentation. Perls are built in, clean and concise.
(caturing, groups) = string =~ /regex/
I remember that having not touched Perl in a while. I miss it.
Someone else already asked for perl one-liners in this thread. I started with command line text processing repo [1] about three years back. That has a chapter on grep/sed/awk/perl/ruby one-liners along with many other tools. I may convert perl one-liners to a book as well later.
Python's default 're' module does indeed lack many features, but there's 'regex' third party module that would be easier to adapt for perl users.
[1] https://github.com/learnbyexample/Command-line-text-processi...