%SEARCH{"[S]upportStatus.*value\=.*[A]skedQuestions" regex="on" limit="10" format=" * $topic" nosearch="on" nototal"on"}%
with these results:
regex="on" .
<form action="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%">
KeyWord
<select name="KeyWord" size="1" value="%URLPARAM{"KeyWord"}%">
<option >Using Twiki</option>
<option>Development</option>
<option>Training</option>
<option>Misc</option>
</select>
<input type="submit" value="Search" />
</form>
| *Topic:* | *KeyWord:* | *Summary:* |
%SEARCH{ "[K]eyWord.*?value="%URLPARAM{"KeyWord"}%"
format="| [[$topic]] | $formfield(KeyWord) | $formfield(Summary) |"
nosearch="on" regex="on" nototal="on" }%
-- JosieMcGeever - 29 Jun 2005
Josie - The syntax I posted above should work. I use it regularly in exactly the way you describe. In your example, try substituting this search string:
[K]eyWord.*?value=.*%URLPARAM{KeyWord}%
Maybe it will help if we dissect this regex a bit. Keep in mind, it defines the whole string we're looking for and ".*" equates to "any number of any characters". So, the string it searches for is this: KeyWord(any number of characters)value=(any number of characters)KeyWord. The second ".*" should allow it to find your Category where ever it falls in a list. Does that make sense?
-- LynnwoodBrown - 29 Jun 2005