News for hackers. Stuff that matters.
Re:Using jq to format JSON on the clipboard by CamJN on Wednesday September 02, 2026 @12:28PM (#49538680)
/\ \ */ 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.

Re:Using jq to format JSON on the clipboard by _flux on Wednesday September 02, 2026 @03:06PM (#49540892)
You need to use -E to get that behavior with GNU Sed.