[tw5] Re: Filter to return tiddlers that do not contain any members of a given list

2021-07-10 Thread Si
Thank you very much Saq! (I assume you meant to put idListRegexp in curly 
braces?)

I have kind of a follow up question:

What if instead of using search terms as identifiers, I instead used 
filters. So for example I might have a tiddler with 
identifier:[search[my-example]] or identifier:[tag[Hello]].

Then I would want to return all tiddlers that don't satisfy *any* of the 
filters listed in an identifier field. Is there a way to do this?
On Saturday, 10 July 2021 at 16:11:09 UTC+1 saq.i...@gmail.com wrote:

> Assuming your identifiers are alphanumeric and do not contain characters 
> that might need to be escaped in regular expressions, something like this 
> should work:
>
> <$vars idListRegexp="[tag[Flashcard]get[identifier]join[|]]">
> <$list filter="[all[tiddlers]!regexp]">
> <>
> 
> 
>
> On Saturday, July 10, 2021 at 4:47:58 PM UTC+2 Si wrote:
>
>> Best explained with an example:
>>
>> I have a bunch of tiddlers tagged Flashcard, each with a field identifier 
>> containing some text.
>>
>> I want to return all the tiddlers that do not feature the values of *any* 
>> identifier fields within their text.
>>
>> Initially I tried the following:
>>
>> <$list filter="[tag[Flashcard]get[identifier]]" 
>> variable=flashcardIdentifier>
>> <$list filter="[!search]">
>> <>
>> 
>> 
>>
>> Of course this doesn't work because it is applying the search one at a 
>> time and is thus returning the tiddlers that don't contain *all* the 
>> identifiers. I want to return the tiddlers that don't contain *any* 
>> identifiers.
>>
>> Anyway now I'm stuck, so I'm wondering if anyone can help me out?
>>
>

-- 
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/4b742fae-9b7f-4919-adec-ccfd90f83016n%40googlegroups.com.


[tw5] Re: Filter to return tiddlers that do not contain any members of a given list

2021-07-10 Thread Saq Imtiaz
Assuming your identifiers are alphanumeric and do not contain characters 
that might need to be escaped in regular expressions, something like this 
should work:

<$vars idListRegexp="[tag[Flashcard]get[identifier]join[|]]">
<$list filter="[all[tiddlers]!regexp]">
<>



On Saturday, July 10, 2021 at 4:47:58 PM UTC+2 Si wrote:

> Best explained with an example:
>
> I have a bunch of tiddlers tagged Flashcard, each with a field identifier 
> containing 
> some text.
>
> I want to return all the tiddlers that do not feature the values of *any* 
> identifier fields within their text.
>
> Initially I tried the following:
>
> <$list filter="[tag[Flashcard]get[identifier]]" 
> variable=flashcardIdentifier>
> <$list filter="[!search]">
> <>
> 
> 
>
> Of course this doesn't work because it is applying the search one at a 
> time and is thus returning the tiddlers that don't contain *all* the 
> identifiers. I want to return the tiddlers that don't contain *any* 
> identifiers.
>
> Anyway now I'm stuck, so I'm wondering if anyone can help me out?
>

-- 
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/1c9be340-26c9-49c9-a8f7-17252000fb89n%40googlegroups.com.