How can I replace the last occurrence of ” before ]
I’m doing some text manipulation and I want to replace the last occurrence of ” (with “, “four”) before ] which could be in different lines. (this essentially adds a new item in the array)
e.g:
I’m doing some text manipulation and I want to replace the last occurrence of ” (with “, “four”) before ] which could be in different lines. (this essentially adds a new item in the array)
e.g: