First, I suggest you check my PowerSeach "filter generator" tool, here:
It gives you controls to select many different filter options and construct
the corresponding filter syntax "on the fly".
This can help you experiment with filtering in general, and can often
help you figure out your desired search syntax without a lot of typing.
For your requested use-case, I suggest using:
[!is[system]search:text:literal[test]sort[title]]
Note the use of "search:text:literal[...]" rather than "regexp:text[...]".
This is because the regexp[...] filter doesn't do an *exact* text search.
Rather, it does search for a text *pattern*, using "regular expression" syntax
In any case, here's a little bit of wikitext "code" that gives you
a custom interface using the above filter syntax:
Search tiddler text for:
<$edit-text tiddler="$:/temp/mysearch" tag="input" size="30" default="" placeholder="enter search text" />
<$reveal state="$:/temp/mysearch" type="nomatch" text="">
<$count filter="[!is[system]search:text:literal{$:/temp/mysearch}sort[title]]" /> matches:<br>
<$list filter="[!is[system]search:text:literal{$:/temp/mysearch}sort[title]]">
<$link /><br>
</$list>
</$reveal>
Just copy/paste the above into a tiddler and you'll be all set.
Notes:
1) $edit-text gets your input and saves it in a "temp" tiddler ($:/temp/mysearch)
2) $reveal prevents any display when the input is blank (otherwise, you would see ALL tiddlers by default!)
3) $count shows the number of matches found
4) $list actually does the search, looping over each matching result
5) $link shows a link to each tiddler that was found
...and, if you want to put this interface into the sidebar tabs:
* add a tag "$:/tags/SideBar"
* add a caption field, e.g., "My Search"
Let me know how it goes...
enjoy,
-e