Tags:
create new tag
, view all tags

Question

I'm having problems with this regex with an AND search.

search="Category.*(value\=).*TypeA ; Status.*(value\=).*Active" order="formfield(Ident)" scope="text" regex="on"

I ommited the rest of the arguments but are formated search type. It used to worked OK in a previous twiki version but not since I changed to 4.1.2. It will only work if I omit the ";" separator (AND separator) and the second condition, but that is not what I am looking for.

Another way to ask this question is.: How can I search in metadata for two values on the form to meet certatin creteria?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: SpreadSheetPlugin ChartPlugin CommentPlugin DirectedGraphPlugin EditTablePlugin
Server OS: Linux ubuntu 2.6.22-14-generic
Web server: Apache/2.2.4
Perl version: v5.8.8
Client OS: WINXP SP2
Web Browser: Firefox 2.0.0.11
Categories: Search

-- AntonioVega - 08 Jan 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.

Never mind, it was a sinax errror

-- AntonioVega - 09 Jan 2008

Remove the space after the semicolon; spaces are significant in a regex search.

-- PeterThoeny - 09 Jan 2008

 
Change status to:
Topic revision: r3 - 2008-01-09 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, 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.