How do i completely remove the following strings from my wordpress posts using regex?
NOTE: THESE ARE TEXT STRINGS THAT GOT HARDCODED WHEN I REIMPORTED MY POSTS.
Below are 3 examples however there can be 100s.
Here is the criteria: string starts with:
googletag.cmd.push
String ends with:
"); });
examples:
googletag.cmd.push(function() { googletag.display("div-gpt-ad-cBdL_cggQrHX7u2qnNrMtQ"); });
googletag.cmd.push(function() { googletag.display("div-gpt-ad-y_rI3cXW4HPKVfyNbLcmjg"); });
googletag.cmd.push(function() { googletag.display("div-gpt-ad-TOILczxQd6hUhdv1UN5ETA"); });