I have taken the basic idea of Eric's and Mark's and extended it to many 
other items such as charter volume and charter pages as well as setting the 
state the charter was filed in.

Thanks again!!

Damon

On Sunday, August 23, 2020 at 2:36:59 PM UTC-7 History Buff wrote:

> Thanks Eric,
>
> That worked just perfectly! Now I have to study it closely so that I can 
> understand how it works. Thanks for the explanation at the end.
>
> Damon
>
> On Sunday, August 23, 2020 at 2:24:35 PM UTC-7 Eric Shulman wrote:
>
>> On Sunday, August 23, 2020 at 1:07:59 PM UTC-7, History Buff wrote:
>>>
>>> It works great. I'm going to start looking into the next step.
>>>
>>
>> Here's a version that optimizes Mark's filtering method and provides the 
>> next step (a button that sets the "charterfiled" field):
>> <$button> extract charter dates
>> <$list filter="[search:text[Charter Filed:]]-[<currentTiddler>]" 
>> variable="tid" >
>> <$list filter="[<tid>get[text]split[Charter 
>> Filed:]nth[2]splitregexp[\s]!match[]nth[1]]" variable="date">
>> <$action-setfield $tiddler=<<tid>> charterfiled=<<date>> />
>> </$list></$list></$button>
>>
>> The first $list finds all tiddlers that contain "Charter Filed:".  Then, 
>> for each tiddler found, the second $list gets all text following "Charter 
>> Filed:", splits on whitespace, ignores any leading whitespace, and gets the 
>> first text, which should be the date text, regardless of format.  This text 
>> is then written to the "charterfiled" field of the current tiddler.
>>
>> enjoy,
>> -e
>>
>

-- 
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/1a8dcdfe-948d-4f44-a7cc-dac245959d43n%40googlegroups.com.

Reply via email to