Configurable Replacement Of Occurrence in Regex

Viewed 10

I want to replace a particular string but the nth occurrence is dynamic.

if string.indexOf has the occurence it would be great..

What is the simplest way?

Thanks

0 Answers
Related