We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>SearchUsingAndNotWorking (09 Jan 2008, PeterThoeny)
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 - 09 Jan 2008 - 22:12:33 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback