Replace Method Visual Basic has a string method named Replace. The value of strVar.Replace(strVar1, strVar2) is strVar with each occurrence of the substring strVar1 replaced with strVar2. For instance, if strVar = "tat-tat-tat" then the value of strVar.Replace("tat", "cha") is “cha-cha-cha”. Write a function named Substitute that performs the same task as the Replace method. For instance, the value of Substitute("tat-tat-tat", "tat", "cha") should be “cha-cha-cha”. Feel free to use the string methods Remove and Insert. The value of strVar.Remove(n, m) is strVar with m consecutive characters from it deleted beginning with the character in the nth position. The value of strVar1.Insert(n, strVar2) is strVar1 with strVar2 inserted into it, beginning at the nth position.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.