Re: use variable in substitute

2007-04-10 Thread Yakov Lerner
On 4/10/07, Horvath Adam [EMAIL PROTECTED] wrote: Hi, One question again for me. Can I use variable in pattern of substitute() in script? let row = getline(j) 'trallala' let rownext = getline(j+1) 'bimbam' let row = substitute(row, ^\\\(.*\\\)$, \\1 rownext, g) let row = substitute(row,

Re: use variable in substitute

2007-04-10 Thread Horvath Adam
Great! Thank you! let row = substitute(row, ^\\\(.*\\\)$, \\1 . rownext, g) Yakov

Re: use variable in substitute

2007-04-10 Thread Tim Chase
Can I use variable in pattern of substitute() in script? let row = getline(j) 'trallala' let rownext = getline(j+1) 'bimbam' let row = substitute(row, ^\\\(.*\\\)$, \\1 rownext, g) 'trallala bimbam' yes is the short answer, though you have to 1) concat it (if there's something to which it