Tags:
create new tag
, view all tags

Question

I'm using wiki forms and formatted search to generate reports from information in the forms. If I have a form with multiple fields, how do I use regex to match the values of two (or more) fields? The dot operator doesn't match NEWLINE, so how do I get regex to jump over the newlines?

  • TWiki version: TWiki version 01 Dec 2001
  • Web server:
  • Server OS:
  • Web browser:
  • Client OS:

-- ZakWilliamson - 14 Mar 2002

Answer

See the andgrep script, which does this (though it probably needs updating for metadata searching of forms, which changed since it was written). It's linked from ExcludeSearchResultWithRegEx.

UPDATE: See QueryIssuerOfTopic for how to search metadata fields - something similar should work with andgrep.

-- RichardDonkin - 15 Mar 2002

You need the latest TWikiAlphaRelease code or Richard's andgrep script in CategorySearchForm for regular expression search with AND.

-- PeterThoeny - 30 Mar 2002

Topic revision: r4 - 2002-03-31 - 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.