oops, splitBefore[W] was a placeholder; it would be splitbefore[regexp[A-Z]]


On Friday, March 17, 2017 at 5:37:17 PM UTC-4, stevesuny wrote:
>
> Yes, number string is unique.
>
> I've been working with the regexp, but can't quite get it to work...
>
> This is what I've got:
>
> <$set name="digit-pattern" value="[0-9]{2} [0-9]{2}">        ||> this is 
> the unique pattern that begins each tiddler
> <$list filter="[regexp:title<digit-pattern>]">                         ||> 
> this (currently) gets all matching tiddlers
> 1 <<currentTiddler>><br>
> <$set name="shortName" value=[{!!title}splitbefore[W]]>
> 2 <<shortName>><br>          ||> i was hoping that <<shortName>> would be 
> the first five chars 
> </$list>
>
>
>
> On Friday, March 17, 2017 at 5:29:55 PM UTC-4, PMario wrote:
>>
>> Hi Steve, 
>>
>> Is your number prefix unique? So there is only one tiddler that matches? 
>> It would be possible to create a regexp filter - list - link - macro 
>>
>> -m 
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/d8ed6f05-ad1d-48b6-bf6f-749b7b358ab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to