HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
CamJN
30 days ago
|
parent
|
context
|
favorite
| on:
Using jq to format JSON on the clipboard
/\ \ */ 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.
_flux
30 days ago
[–]
You need to use -E to get that behavior with GNU Sed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search:
Edit: had to escape the spaces because HN ate my spaces.