Ideally, I would like to answer vim:
I want to change
[*, 1, *, *] to [*, 2, *, *]
Here, the stars refer to individual characters in the substring, which I would like to leave unchanged. for instance
[0, 1, 0, 1] to [0, 2, 0, 1]
[1, 1, 1, 1] to [1, 2, 1, 1]
If people know how to do this in perl or python or something else, that would be equally good. Greetings
source
share