fcf.replaceAll() function
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Performs replacement of all searched substrings in a string
Arguments
- Source string
- Search substring
- Replacement string
Result
- String with substrings replaced
Example: Function application
let newString = fcf.replaceAll("Some text: 123", "123", "987");
console.log(newString);
Output:
Some text: 987