I have a file with the following expressions:
something[0]
Where instead of 0 there could be different numbers. I want to replace all these occurances with
somethingElse0
Where the number should be the same as in the expression I replaced. How do I do that?