<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Lets say I have a list of code like this</div><div><br></div><div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- "test"</div><div>foo <- “test"</div></div><div><br></div><div>Is it possible to automate the insertion of columns of numbers. The output should be this:</div><div><br></div><div><div>foo1 <- "test1"</div><div>foo2 <- "test2"</div><div>foo3 <- "test3"</div><div>foo4 <- "test4"</div><div>foo5 <- "test5"</div><div>foo6 <- "test6"</div><div>foo7 <- "test7"</div><div>foo8 <- "test8"</div><div>foo9 <- "test9"</div><div>foo10 <- “test10”</div></div><div><br></div><div>Is there perhaps a regex or other automation that could be used? I’m aware that it is possible to insert line numbers but this will only be useful if the 10 lines of code happen to be on lines 1-10.</div><div><br></div><div>Thanks</div><div>Ross</div><div><br></div><div><br></div></body></html>