When I copy some long string like json from a debugger, and want to look at it properly formatted it starts off encoded with /n and /t characters, etc.
I usually go:
- Replace (Normal) /n -> qqqq
- Replace (Extended) qqqq -> /n
Is there some trick to do this in one step?
3 Comments
whereisk@lemmy.world · 6 pts · 2y
Why not regex it?
Find
\/n
Replace
/n
Or make a macro.
otter@lemmy.ca · 5 pts · 2y
I think the key bit that OP was missing was the escape character
\At least, that's the mistake I was making once
TGhost@lemmy.dbzer0.com · 1 pts · 2y
First thing I thought by reading the post. I'm glad to see your comments now.