In my file, I have many instances of
Y are variables. I would like to swap all instances to
grid[Y][X] (preferably one by one so I can check them).
Examples (especially note the second example):
grid[row][col] grid[row + 1][col]
grid[col][row] grid[col][row + 1]
Y are guarenteed to contain only A-Z, a-z, 1-9, + - (if that helps)