How can I make notepad++ delete everything other than the contents of the 2nd " " on every line (including the " " things) and every odd line?

for example:

line 1:"advancements.adventure.adventuring_time.description": "Tüm biyomları keşfet",

line 2: "advancements.adventure.adventuring_time.title": "Macera Zamanı",`

i want it to delete everything but Macera Zamanı

Thanks


  • Ctrl+H
  • Find what: ^.*\R(?:[^"]*"){3}([^"]*)".*
  • Replace with: $1
  • CHECK Wrap around
  • CHECK Regular expression
  • UNCHECK . matches newline
  • Replace all

Explanation:

^           # beginning of line
    .*          # 0 or more any character
    \R          # any kind of linebreak (i.e. \r, \n, \r\n)
    (?:         # non capture  group
        [^"]*       # 0 or more any character that is not double quote
        "           # double quote
    ){3}        # end group, must appear 3 times
    ([^"]*)     # group 1, 0 or more any character that is not double quote
    "           # double quote
    .*          # 0 or more any character

Replacement:

$1          # content of group 1, the data between the second pair of quotes

Screenshot (before):

enter image description here

Screenshot (after):

enter image description here