Say I have the following string: “Cotton 231 is & great43 for fun: Cotton”;
I want to find and delete everything between the words Cotton via RegExp (because I don’t know what will be inbetween Cotton, I just know Cotton is the magic word every time).
I can .replace, which I intend to do, but I can’t figure out what the RegExp would be
Anyone know how this can be done?