Comment

Comment by asicsp

Grep is often better suited for extracting matched portion, especially if you also have PCRE option:

    grep -oP -m1 'name:\s*"\K[^"]+'
parent asicsp 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton