I want to remove every line containing "albumname"
what I have
"ts": "2024-03-15T05:07:50.716Z",
"albumName": "Popular KPOP Best 15 Vol. 26"
what I want
"ts": "2024-03-15T05:07:50.716Z"
The problem is I can’t put the whole line because what’s after "albumname" is different every time, for example
one will be
"albumName": "Popular KPOP Best 15 Vol. 26"
another will be
"albumName": "LES (Speed Version)"
I have tried "albumname"n
, didn’t work obviously.
Edit: I also want the comma at the end of the ts line removed.
2
Answers
Have you tried using
Ctrl+d
repeatedly onalbumname
and thenshift+end
to highlight the whole line(s) and then thedel
key?Turn on "Use regular expression" (regex) and use
.*n
to match the rest of the line..
means "any character".*
means "zero or more times".n
will match LF or CRLF line endings