Yes, it does work!! Thanks for the prompt reply Eric On Aug 8, 11:52 pm, Eric Shulman <[email protected]> wrote: > On Aug 8, 3:31 pm, Kris Fremen <[email protected]> wrote: > > > I use this in a macro to add a something new between the first and the > > second line: > > var txt=txtoriginal.replace(/(.+)\n(.+)/, '$1\n' + txtcheckbox + '\n > > $2') > > > Problem is that when i use $1, because the macro accepts arguments the > > $1 is actually the argument AND the substitution, which clearly makes > > a mess out of the tiddler... > > Perhaps this would work: > > var txt=txtoriginal.replace(/(.+)\n(.+)/, '$'+'1\n' + txtcheckbox + '\n > $'+'2') > > -e
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

