<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">There’s no regex. You’d have to write a command.<div><br></div><div>If you made a rectangular selection, a command to fill the right hand side with increments of the first number would be quick to write</div><div><br><div><div>I think that there’s an unexploited gap for a bundle handling numeric input and row/column/cell structures, enabling things like fill down, across, sum down etc.</div><div><br></div><div><br></div><div>On 8 Oct 2013, at 11:21 AM, Ross Ahmed <<a href="mailto:rossahmed@googlemail.com">rossahmed@googlemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; 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></blockquote></div><br></div></body></html>