Hello, @dejoota, @terry-r and All,
@dejoota, I suppose that you just want to remove the messages in the last group of double quotes, don’t you ?
So, here are three regex S/R which achieve this goal. Now, whatever your choice :
Open the Replace dialog ( Ctrl + H )
Untick all options
Tick the Wrap around option
Click once on the Replace All button ( Do not use the Replace button if the regex contains a \K syntax )
Then :
If you want to remove, both, the portuguese and the english versions :
SEARCH (?-i)[^"]+(?="$)
REPLACE Leave EMPTY
So, from this INPUT text :
"npc_citizen.question00" "isto é um teste"
"[english]npc_citizen.question00" "This is a test"
you’ll get this first OUTPUT text :
"npc_citizen.question00" ""
"[english]npc_citizen.question00" ""
If you want to remove the portuguese version, only :
SEARCH (?-si)^(?="npc_citizen).+"\K[^"]+(?="$)
REPLACE Leave EMPTY
you’ll get this second OUTPUT text :
"npc_citizen.question00" ""
"[english]npc_citizen.question00" "This is a test"
If you want to remove the english version, only :
SEARCH (?-si)^(?="\Q[english]\E).+"\K[^"]+(?="$)
REPLACE Leave EMPTY
you’ll get this third OUTPUT text :
"npc_citizen.question00" "isto é um teste"
"[english]npc_citizen.question00" ""
Best Regards,
guy038