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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-01-09 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.