Commenting so I can come back and find the thread later.

This is really neat! Well done.

Best,
Josh F

On Tuesday, July 23, 2019 at 3:43:48 PM UTC-7, Mark S. wrote:
>
> Hi TT
>
> This just has the changes to the ps1 file with the new regular expression 
> filter you suggested:
>
>
> https://drive.google.com/file/d/1q-yFuBiWnA30ZMaICFfljDSfCgZKAgVN/view?usp=sharing
>
> I tried using your test environment, but I think that it may have to be 
> rewritten for our new rule (no stems like "mystem (100)" ).
> I was kind overwhelmed by the feedback, and wasn't sure if some files were 
> not being updated or if they already had on 
> a prior cycle. Are all the test files "touched" on every reloop? Also, 
> what is the point between cycle 2 and 3 ? Are they
> the same but with different times, or something else? Anyway, I'm sure 
> you'll know how to use it to check results and
> see if anything has to be tweaked in the code.
>
> BTW, your reporting in the PS1 file looks better than mine, at least 
> everything I've seen so far.
>
> Thanks!
>
> On Tuesday, July 23, 2019 at 8:19:03 AM UTC-7, @TiddlyTweeter wrote:
>>
>> Ciao Mark
>>
>> I played around with it. 3 main tests are here: 
>> https://tidbits.wiki/reginald/tw_regex.html
>>
>> The solution ALLOWS for the "Falcon(7)" case. (BTW the visual 
>> presentation of the case makes it look like the first (7) is 
>> removed--actually that is just a limitation of the difference engine in TW. 
>> Its the second (7) that actually matches.) 
>>
>> My feeling here is ADVISE against "Falcon(7)", but not prevent it 
>> matching. 
>>
>> The tests assumes that the basic pattern is ...
>>
>> [wikiname-literal][regex-of-number-cruft][.extension-literal]
>>
>>
>> The regex I came up with is ...
>>
>> (\s*\(\d+\))*
>>
>>
>> This means ...
>>
>>     Match 0 or more spaces as many times as possible
>>     Match left bracket
>>     Match any number
>>     Match right bracket
>>
>>     And repeat the pattern 0 or as many times as possible
>>
>> This a JavaScript regex.  
>>
>> I'm pretty sure it compatible with PowerShell. Let me know if you have 
>> any problems.
>>
>> Best
>> TT
>>
>>
>> On Monday, 22 July 2019 18:05:41 UTC+2, Mark S. wrote:
>>>
>>> It's probably time to reconsider the file-globbing versus regular 
>>> expression approach. File-globbing was good, but it does limit the name 
>>> comparisons.
>>>
>>> You're good with regular expressions ;-)
>>>
>>> What would be a good matching rule so that  stem matches
>>>
>>> stem(1)
>>> stem (1)
>>> stem (1)(2)
>>>
>>> BUT NOT
>>>
>>> stem (old)
>>> stem (john)
>>>
>>> I'm thinking that a match that searches for    stem<space>*<left 
>>> brace><number><non-greedy-indicator>
>>>
>>> This would mean people couldn't deliberately use (number) in their stem 
>>> names, but would open up stems that
>>> currently would match (e.g. polly vs polly-dev)
>>>
>>> Thanks!
>>>
>>> On Monday, July 22, 2019 at 5:03:34 AM UTC-7, @TiddlyTweeter wrote:
>>>>
>>>> Ciao Mark S.
>>>>
>>>> An interesting potential "caught on your own petard" issue came up :-).
>>>>
>>>> I wanted to change the online-name of the current "polly.html" to 
>>>> "polly-dev.html". And create a new "polly.html" for basic documentation. 
>>>> But, according to our own rules, I can't do that. 
>>>>
>>>> But It seems a bit odd to have to create "polly-doc.html" to address 
>>>> what may be a broad need. "Polly.html" would be a lot better I think for 
>>>> first contact?
>>>>
>>>> Yours in the stem :-)
>>>>
>>>> TT
>>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4d8130cf-6e61-4cbd-a920-43744f153492%40googlegroups.com.

Reply via email to