Am Mittwoch, 5. März 2014 00:19:24 UTC+1 schrieb Alberto Molina:
>
> Hi Stephan,
>
> What made you think the "search" filter supports regular expressions?
>>
>
> I don't think, I just try and see if it works :)
>
It won't. Regular expressions and the suffix are quite new and only
implemented for the "field" filter.
>
> I also tried
> field:title/{$:/temp/search}/
> with no more success.
>
Again: {$:/temp/search} is not a valid regular expression. I know you want
to replace the content of the tiddler there, but anything between // is
taken literally. So you have absolutely NO WAY to replace.
The only way is by using macros and its variable replacement:
\define filter_level2()
<$list filter="[field:title/^$(what)$/]">
<$link><$view field="title"/></$link></$list>
\end
\define filter_level1()
<$set name="what" value={{$:/temp/search}}>
<<filter_level2>>
</$set>
\end
<<filter_level1>>
>
>
>> try
>>
>> <$list filter="[!is[system]field:text/$(titre)$/sort[title]limit[250]]"
>> />
>>
>
> Actually, I’m trying to get something like that: <$list
> filter="[!is[system]search/{$:/temp/search}/sort[title]limit[250]]" />
>
> Thx
>
> Alberto
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.