I have this code,
id1 = item.check([[-10, -10, a1, b1], [10, 10, a1, b1]])
id1 = item.check([[-10, -10, a1, b1], [10, 10, a1, b1]])
id1 = item.check([[-10, -10, a1, b1], [10, 10, a1, b1]])
id1 = item.check([[-10, -10, a1, b1], [10, 10, a1, b1]])
I want to replace integer that following the string and have this output
id1 = item.check([[-10, -10, a1, b1], [10, 10, a1, b1]])
id2 = item.check([[-10, -10, a2, b2], [10, 10, a2, b2]])
id3 = item.check([[-10, -10, a3, b3], [10, 10, a3, b3]])
id4 = item.check([[-10, -10, a4, b4], [10, 10, a4, b4]])
I go each line and conduct each command, for example in second line :s/\s\d+/2/g
and so on.
But nothing happens.
This is how I came up,
:s
is replacing, \s
is character, \d+
is int, /2
is output, /g
is global for the line.
How can I improve?
Thanks in advance!
\s
is a space character is patterns.:help pattern