> > @TiddlyTweeter wrote: > > >> STEMMING >> >> I don't understand how to do it but I think the stemming issue with >> possible overwrite could be avoided by using a regular expression rather >> than the general wildcard? >> This looks like it might work .... >> >> "$stem(\s*\(\d+\))?$" >> >> But I'm unclear how PowerShell invokes the matching it can do ( >> https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_regular_expressions?view=powershell-6 >> ). >> >> Mark S. wrote:
> That document explains how to do string matching. File globbing looks like > regular expressions, but it's not. Possibly it would be possible to insert > code that analyzes the output as strings. So one line of code would become > 10 ;-) > Ciao Mark S. > but it's unclear -- is there an actual problem that would be fixed by this > approach? > Here is a case that I think is possible. Certainly in my usage. Say you have wiki1 you are working on and clone it (to run a test safely)--calling the clone wiki1-b . Currently any "Download Save" of it would restore and over-write wiki1. PowerShell console: wiki1 Copying C:\Users\Josiah\Downloads\wiki1-b(2).html to C:\scrap\wiki1\wiki1. html In the use-case, in reality I don't need wiki-b "restoring" because its a throw away I'll later delete; nor do I want it overwriting anything. One issue that is a bit clearer to me now is it could get cumbersome having to rename such test cases uniquely stemmed? I think it makes more sense they are just ignored unless you really need a restoration--in which case then its name should go in PS script settings as a wiki to restore (to its own name). Hope this is clearer! Best wishes Josiah -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/35f8d836-be8c-4744-a668-bdb4d6a24ced%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

