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/edbe6fcc-1be6-4e8d-92de-8417afa59290o%40googlegroups.com.

Reply via email to