I'm trying to replace part of a string with a different string, but the original string has multiple instances of the string I want to replace and replace()
only replaces the first instance.
newString = "New String!"
testString = testString.replace("Old String?", newString);
I've also tried the global flag 'g' but I think my implementation was incorrect.