The following line is given:
Backticks[0].Folders[0]
I need to increment the last number.
I'm not a Regexp replacement specialist, I tried this , but also selects the bracket.
href = href.replace(/\d+]$/gi, matchedNumber++);
Is it possible to make a choice, increment and replacement in one liner?
source share