filter titles with first word ending in "ing"

90 views
Skip to first unread message

Alex Hough

unread,
May 26, 2017, 4:31:05 PM5/26/17
to TiddlyWiki
HelloThere!

The starting point is this, try in in TW.com

<$set name="digit-pattern" value="\s*\S+ing">
Output:<<list-links "[regexp:title<digit-pattern>]">>
</$set>

I want to refine the filter so that it only returns those titles with the first word ending in "ing"

If I had a collection of Tiddlers
Waling to work
Crafting a cardigan
Singing a song
Book about walking

then the filter would only return the first four. 

thanks for any help

Alex

@TiddlyTweeter

unread,
May 26, 2017, 5:25:51 PM5/26/17
to tiddl...@googlegroups.com, Tiddl...@googlegroups.com
Ciao Alex

You meant the first three??

This is one way to do it ...

<$set name="digit-pattern" value="^\w+ing\b">

Output:<<list-links "[regexp:title<digit-pattern>]">>
</$set>

^ = start of string
\w+ = 1 or more letters
ing  = literal text
\b = word boundary

There is a simple reference to JavaScript Regular Expressions here.

Notte,
Josiah

Alex Hough

unread,
May 28, 2017, 5:41:15 PM5/28/17
to TiddlyWiki
Hi Josiah,

Thanks for the help.




- Alex

On 26 May 2017 at 22:25, @TiddlyTweeter <tiddly...@assays.tv> wrote:
Ciao Alex

You meant the first three??

This is one way to do it ...

<$set name="digit-pattern" value="^\w+ing\b">
Output:<<list-links "[regexp:title<digit-pattern>]">>
</$set>

^ = start of string
\w+ = 1 or more letters
\b = word boundary

There is a simple reference to JavaScript Regular Expressions here.

Notte,
Josiah


On Friday, 26 May 2017 22:31:05 UTC+2, AlexHough wrote:
HelloThere!

The starting point is this, try in in TW.com

<$set name="digit-pattern" value="\s*\S+ing">
Output:<<list-links "[regexp:title<digit-pattern>]">>
</$set>

I want to refine the filter so that it only returns those titles with the first word ending in "ing"

If I had a collection of Tiddlers
Waling to work
Crafting a cardigan
Singing a song
Book about walking

then the filter would only return the first four. 

thanks for any help

Alex

--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/83e3c4af-aeed-42d6-9098-594cdf1282e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages