Tags:
create new tag
, view all tags

Question

How can I activate regulare expressions?

ich need to find all Topics like "SR..HV..." I tryed "*", ".*", "(.*)" ... but always get no result.

Is there another configuration exept Set SEARCHDEFAULTTTYPE = keyword ?

Greetings Daniel

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Suse Linux Enterprise 10
Web server: Apache 2.2.0
Perl version: 5.8.8
Client OS: win xp
Web Browser: firefox
Categories: Search

-- DanielPerabo - 19 Nov 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Here is an example to search for topic names beginning with "SR..HV":

%SEARCH{ "^SR..HV" scope="topic" type="regex" nonoise="on" format="| [[$topic]]: $summary |" }%

Please note that SEARCH only looks in the current web by default. There is parameter to search in all webs.

See details at VarSEARCH, FormattedSearch, RegularExpression.

-- PeterThoeny - 19 Nov 2008

thx, it's working fine

-- DanielPerabo - 18 Dec 2008

 
Change status to:
Topic revision: r3 - 2008-12-18 - DanielPerabo
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.