sValue | (String) Source string in which possibly found the sSearch value will be replaced by the sReplace value. |
---|---|
sSearch | (String) Text in the sValue string that has to be replaced by the sReplace value. |
sReplace | (String) Value by which the sSearch item in the sValue string has to be replaced. |
sParams | [optional] (String) Additional parameters.
count:n; - Specifies the number of replacements.
count:-1; (default) - replace all
count:n; - n - number of replacement occurrence start:n; - Specifies the starting position of replacement.
start:0; (default) - the replacemenet start is from beginning of the source text
start:n; - n - Character position in the source string specifies the start of the replacemenet (zero-based index) |
var sString = Pm.StringReplace("XXpXXPXXp", "p", "Y");
// sString contains "XXYXXPXXY"