Type Method
Format string. Replace (/ search text / options, string replacement)
Commentary
Replace the same characters if using a regular expression search strings. The optional g (global matching), i (in English capital letters, lower
case ignored), m (in units of matched lines) can be omitted. Returns the result after execution.
Sample code - QC 2 JavaScript
str = "Sample_sample123";
n = str.replace (/ mp / g, "MP");
outputs [0] = n;
Sample code - QC 3 JavaScript
function (__string output) main ()
{
var result = new Object();
str = "Sample_sample123";
n = str.replace(/mp/g,"MP");
result.output = n;
return result;
}