Thanks Mark, It works great. I'm going to start looking into the next step. I will say that I would have definitely gone down the wrong road with the way I was thinking. Thanks so much!
Damon On Sunday, August 23, 2020 at 12:54:16 PM UTC-7 Mark S. wrote: > Here's a lister that will match and extract these dates, assuming there's > only one per tiddler and that each date is formatted correctly. > > If it works, then the next step would be to make a button that would > wikify the resulting date and stick it into the desired field. > > Maybe someone else would get excited about that next step? > > This could probably be done in only one or two list filters if PR2963 > <https://github.com/Jermolene/TiddlyWiki5/pull/2963> were implemented. > > <$list filter="[regexp:text[Charter Filed:]]-[<currentTiddler>]" > > <$list filter="[all[current]get[text]splitbefore[Charter Filed:]]" > variable="prefix"> > <$list filter="[all[current]get[text]removeprefix<prefix>]" > > <$list filter="[all[current]split[-]nth[1]]" variable=year> > <$list filter="[all[current]split[-]nth[2]]" variable=month> > <$list filter="[all[current]split[-]nth[3]]" variable=daze> > <$list filter="[<daze>split[]nth[1]]" variable=d1> > <$list filter="[<daze>split[]nth[2]]" variable=d2> > <<year>>-<<month>>-<<d1>><<d2>> > </$list> > </$list> > </$list> > </$list> > </$list> > </$list> > </$list> > </$list> > > > > On Sunday, August 23, 2020 at 9:46:40 AM UTC-7, History Buff wrote: >> >> All, >> >> I'm just starting to look at this, but I thought I would ask the great >> community if anyone has done this before to prevent me from going down the >> wrong path. >> >> What I would like to do is to search for a key phrase in the text field >> of all tiddlers and for those tiddlers where that phrase exists, move the >> next x number of characters into a custom field. >> >> Specifically, I would like to search for the phrase "Charter Filed: " and >> then move/copy the date which follows (in the format of yyyy-mm-dd) into a >> custom field named charterfiled. >> >> I think this should be doable and should save me a lot of manual work in >> the long run. >> > -- 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/64b7d820-8e69-4fd8-a653-ec578b41e54an%40googlegroups.com.

