[tw5] Re: Test if a tiddler title is of a particular form

2018-07-14 Thread Mohammad
Very good code! I used this with modification to list all .png tiddlers *Mohammad* On Sunday, July 15, 2018 at 7:22:55 AM UTC+4:30, Mark S. wrote: > > This should do that: > > \define myregexp() ^([a-zA-Z]+\.){2}[a-zA-Z]+$ > <]">> > > In this example, I'm using groups and a quantifier, since

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-14 Thread 'Mark S.' via TiddlyWiki
This should do that: \define myregexp() ^([a-zA-Z]+\.){2}[a-zA-Z]+$ <]">> In this example, I'm using groups and a quantifier, since the first match gets repeated twice. You can expand that out if it's easier to scan. -- Mark On Saturday, July 14, 2018 at 7:31:52 PM UTC-7, TonyM wrote: > >

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-14 Thread TonyM
Josiah, I am glad for your help, and marks - I need to jump into regex soon, but it seems to require a lot of rote learning - perhaps I can make a wiki for that? In the case in question the three words can only be a-zA-Z What would I replace \w with for this outcome? Thank Tony On Sunday,

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-14 Thread @TiddlyTweeter
Ciao TonyM & Mark S. Really interesting work. A few small non-consequential notes on the regex ... This is just for interest. Marks' ... ^\w+?\.\w+?\.\w+?$ is perfectly serviceable. But it will work simpler too ... ^\w+\.\w+\.\w+$ ... The qualifying "?" that is to prevent "greedy" matches

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-14 Thread 'Mark S.' via TiddlyWiki
Application level validation. It will be interesting to see how that works out. -- Mark On Saturday, July 14, 2018 at 12:54:13 AM UTC-7, TonyM wrote: > > Mark, > > This actually seems to work really well. I always like to return the > favour so perhaps you will find this interesting and its

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-14 Thread TonyM
Mark, This actually seems to work really well. I always like to return the favour so perhaps you will find this interesting and its implications. Place the following in a tiddler tagged $:/tags/ViewTemplate \define myregexp() ^\w+?\.\w+?\.\w+?$ <$list filter="[titleis[missing]]"

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-14 Thread TonyM
Mark, Thanks, that will list all tiddlers with that title form (Exhaustive testing remains) And the following will reveal if the current tiddler has this form \define myregexp() ^\w+?\.\w+?\.\w+?$ <$list filter="[is[current]regexp]"> Thanks Heaps On Saturday, July 14, 2018 at 3:43:00 PM

[tw5] Re: Test if a tiddler title is of a particular form

2018-07-13 Thread 'Mark S.' via TiddlyWiki
TT is the real expert, but this may get you started: \define myregexp() ^\w+?\.\w+?\.\w+?$ <]">> Regexp is SOOO slippery.Without knowing more about your data, and your exact requirements, it's hard to know if this nails it. But you can test and tweak it and see what happens. If you ever need