[tw5] Re: Help with filter

2021-12-21 Thread Jon
Perfect!

Many thanks
Jon

On Tuesday, 21 December 2021 at 14:12:03 UTC cj.v...@gmail.com wrote:

> Some alternatives that are more compact:
>
> <$vars expression="Footnotes##myref1([^0-9]|\b)">
>
> <$list filter="[regexp:text]">
> {{!!title}}
> 
> 
>
> <$vars expression="Footnotes##myref1(^\d|\b)">
>
> <$list filter="[regexp:text]">
> {{!!title}}
> 
> 
> On Tuesday, December 21, 2021 at 10:06:55 AM UTC-4 Charlie Veniot wrote:
>
>> G'day Jon,
>>
>> Sounds like you need something along the lines of:
>>
>> <$vars expression="Footnotes##myref1([^0123456789]|\b)">
>> <$list filter="[regexp:text]">
>> {{!!title}}
>> 
>> 
>>
>> On Tuesday, December 21, 2021 at 3:18:36 AM UTC-4 Jon wrote:
>>
>>> Hi,
>>>
>>> I have this as the 1st line of a filter
>>>
>>> <$list filter=[regexp:text[Footnotes##myref1]]>
>>>
>>> to find 'myref1' references, but I've discovered that it's also finding 
>>> 'myref11', 'myref12' etc.
>>>
>>> What do I need to include to get an exact match?
>>>
>>> Regards
>>> Jon
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/250bb94f-17ac-4cc7-af74-39e109f03e35n%40googlegroups.com.


[tw5] Re: Help with filter

2021-12-21 Thread Charlie Veniot
Some alternatives that are more compact:

<$vars expression="Footnotes##myref1([^0-9]|\b)">
<$list filter="[regexp:text]">
{{!!title}}



<$vars expression="Footnotes##myref1(^\d|\b)">
<$list filter="[regexp:text]">
{{!!title}}



On Tuesday, December 21, 2021 at 10:06:55 AM UTC-4 Charlie Veniot wrote:

> G'day Jon,
>
> Sounds like you need something along the lines of:
>
> <$vars expression="Footnotes##myref1([^0123456789]|\b)">
> <$list filter="[regexp:text]">
> {{!!title}}
> 
> 
>
> On Tuesday, December 21, 2021 at 3:18:36 AM UTC-4 Jon wrote:
>
>> Hi,
>>
>> I have this as the 1st line of a filter
>>
>> <$list filter=[regexp:text[Footnotes##myref1]]>
>>
>> to find 'myref1' references, but I've discovered that it's also finding 
>> 'myref11', 'myref12' etc.
>>
>> What do I need to include to get an exact match?
>>
>> Regards
>> Jon
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4de21e99-af09-49c3-b82e-393093c81c4an%40googlegroups.com.


[tw5] Re: Help with filter

2021-12-21 Thread Charlie Veniot
G'day Jon,

Sounds like you need something along the lines of:

<$vars expression="Footnotes##myref1([^0123456789]|\b)">
<$list filter="[regexp:text]">
{{!!title}}



On Tuesday, December 21, 2021 at 3:18:36 AM UTC-4 Jon wrote:

> Hi,
>
> I have this as the 1st line of a filter
>
> <$list filter=[regexp:text[Footnotes##myref1]]>
>
> to find 'myref1' references, but I've discovered that it's also finding 
> 'myref11', 'myref12' etc.
>
> What do I need to include to get an exact match?
>
> Regards
> Jon
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/094899fe-3cba-46b0-9cf8-de949b9a6086n%40googlegroups.com.


[tw5] Re: help on filter and enlist

2018-10-06 Thread Laurent Bonet
Perfect. Thanks so much for the reactivity and the clarity of the answer!

Le samedi 6 octobre 2018 11:16:07 UTC+2, Laurent Bonet a écrit :
>
> Hello,
>
> Would like to get help on how to write a filter which include enlist.
> I want to filter a list which is contained in field called validity (see 
> attached screenshot).
> with filter="[enlist{!!validity}title[B]" everything is fine I'm getting a 
> B value.
> with filter="[enlist{!!validity}title[X]]" I was hoping to get nothing as 
> X is not part of "A B C" but I'm getting the X value...
>
> Thanks in advance for your help.
>
> [image: Capture d’écran 2018-10-06 à 11.15.23.png]
>  
>
>
>

-- 
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/6dc2eea2-554c-40cc-9060-8f6242de8cd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: help on filter and enlist

2018-10-06 Thread Jed Carty
The problem is that title in your filter is a construction operator 
(https://tiddlywiki.com/#Selection%20Constructors)

If the things listed are tiddlers than you can use field:title[X] and it 
will work the way you expect, but only if there is a tiddler called X.

If the list isn't just titles of tiddlers that exist than to do what you 
want to do you can use prefix or suffix like this:

<$list filter='[enlist{!!validity}prefix[X]]'>



Of course this isn't perfect because it will match anything that has the 
title as a prefix. You can combine prefix and suffix to be a bit safer but 
it is also not prefect

[enlist{!!validity}prefix[X]suffix[X]]

-- 
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/d2839e4e-8932-4613-95eb-c40f0b01ba62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.