How to replace all instances of one character in a string
I read that the suggested means to replace every instance of a single character in a string is the following example, where the intent is to remove every space from the string:
var strng = "George Smith Patton";
strng = strng.replace(/" "/g, "");
The intent is to yield "GeorgeSmithPatton" as the value of strng. However, this apparently in not the correct syntax in the Acrobat environment, and I've been unsuccessful in my search for how to use a global flag in the .replace( ) parameter. I know how to accomplish the result with a loop, but if there is a means to accomplish the objective with the .replace( ) method I would appreciate help from the Community.
