Thanks a lot.

But further, if I want to catch the match like this:

```
<$set name="pattern" value="{{the (.*?) thing}}">
<<list-links "[regexp:text<pattern>]">>
</$set> 
``` 
How can I get the (.*?)'s value?
在2015年8月15日星期六 UTC+8 下午4:20:50<Eric Shulman> 写道:

> On Saturday, August 15, 2015 at 12:32:44 AM UTC-7, John wrote:
>>
>> Filter search using search[{{}}] shows a tiddler about transclusion.
>> But Filter search using regexp[{{[a-zA-Z0-9]*}}] does not yield the same 
>> result.
>>
>
> 1) you need to search in the correct field
>
> By default, search[{{}}] look in both the tiddler title and content. 
>  There is one tiddler, [[Transclusion Basic Usage]] that contains the 
> literal "{{}}".
> However, regexp[{{}}] defaults to only the title field, and there are no 
> tiddler *titles* that include the curly braces, thus no results.
>
> To apply a regexp filter on the tiddler content, you need specify the 
> desired field by writing regexp:text[...]
>
> 2) The documentation in http://tiddlywiki.com/#regexp%20Operator says 
> this:
>
>> "The filter syntax makes it impossible to directly specify a regular 
>> expression that contains square brackets. The solution is to store the 
>> expression in a variable. See the examples."
>
>
> Thus, to run the filter you want, you can't use the Advanced Search/Filter 
> tab.  Instead, you need to write something like this into a tiddler:
> <$set name="pattern" value="{{[a-zA-Z0-9]*}}">
> <<list-links "[regexp:text<pattern>]">>
> </$set>
>
> Hope this helps,
>
> enjoy,
> -e
> Eric Shulman
> ELS Design Studios
> TiddlyTools - "Small Tools for Big Ideas!"
> InsideTiddlyWiki: The Missing Manuals
>
> YOUR DONATIONS ARE VERY IMPORTANT!
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
>    http://TiddlyTools.github.com/fundraising.html#MakeADonation
>
> Professional TiddlyWiki Consulting Services...
> Analysis, Design, and Custom Solutions:
>    http://www.TiddlyTools.com/#Contact
>
>

-- 
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/098a5d1f-1e34-40c5-8845-14da44e4bd00n%40googlegroups.com.

Reply via email to