On Nov 14, 5:19 pm, FND <[EMAIL PROTECTED]> wrote: > >> config.commands.copyTiddler.suffixPattern=/ - ([0-9]+)$/; > > > Eric - what change is required to force min 2 digits in 'n'? > > I'm not familiar with the rest of the code, but it seems like changing > "[0-9]+" to "[0-9]{2,}" should do the trick. > > > I always find RegEx to have completely the opposite effect to aspirin > > Once you get the hang of it, RegEx is lovely. Much like the *nix command > line. > > -- F.
Thanks - but didn't work: config.commands.copyTiddler.suffixText="-%0"; config.commands.copyTiddler.suffixPattern=/-([0-9]{2,})$/; Starting with a tiddler called test-one, three successive copy clicks gave me test-one-1 test-one-1-1 test-one-1-1-1 whereas, test-one-01 test-one-02 test-one-03 (thru 99) is what I'm trying to achieve. Now, where's the aspirin ;) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---