skip to Main Content

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


  1. Have you tried using Ctrl+d repeatedly on albumname and then shift+end to highlight the whole line(s) and then the del key?

    Login or Signup to reply.
  2. Turn on "Use regular expression" (regex) and use .*n to match the rest of the line.

    "albumname".*n
    
    • . means "any character".
    • * means "zero or more times".
    • n will match LF or CRLF line endings
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search