I have something like this:
var myString = "Paul, Paula, Pauline";
var myRegExp = /Paula?/g;
var change= myString.replace(myRegExp, "George");
document.write(change);
How can I change only Paul and Paula without changing Pauline into Georgeine. Now, I get George, George, Georgeine, and I want George, George, Pauline.
