Comment

Comment by tatref

Isn't simpler to use perl?

Perl -pe 's/.(capture this)./$1/'

That way, you can capture multiple groups, and change the format in the output. You can also do simple calculations if you capture numbers

parent tatref 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton