Let's say I have this text:
const str = 'It\'s going to rain tomorrow. One observer said: "Oh my god, it\'s going to rain." We still don\'t know how much.';
What's the best way to completely remove "Oh my god, it's going to rain."
from the string? Even if there are multiple quotes, just remove portions of the string that are enclosed within two quotes.
I can think of splitting it into an array and then tracking the pair and then slicing it from the array, but that's tedious and complex.
Anyone have any better idea how to solve this?