Comment

Comment by CamJN

/\ \ */ is the same as / +/, but if you only want to replace 2+ spaces and leave the single spaces alone, then what you really want is /\ \ +/.

Edit: had to escape the spaces because HN ate my spaces.

parent CamJN 2 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton