So, I have a function which has two params: string and match index to replace and i need to replace only match with that index. How can i do that?
Example:>
Use regex match with g flag var str="test string".match(/t/g) output would be array of matched strings in this case "t" [t,t,t]