Parameters (String, Integer, Integer String);
Returns: String;
Function to replace the middle part of the source string with the replacement string. The resultant string length is equal to the sum of lengths of the last 3 parameters.
The first parameter is the source string.
The second parameter is the length of the first part of the resultant string.
The third parameter is the length of the last part of the resultant string.
The fourth parameter is the replacement string for the middle part of the resultant string.
The function must have 4 parameters.
Example: REPLACE_MIDDLE('FirstPartMiddlePartLastPart',9,8,'_') = 'FirstPart_LastPart'
Comments
0 comments
Please sign in to leave a comment.