Tags:
create new tag
view all tags

Question

The Wiki Variable %SEARCH{... can be used to find topics which match a specific pattern in a line of it.

The problem i have is that i must find a match in more lines. For example the must be "abc" in one line AND "def" in an other line. Only the topics which match both rules have to be listed in the output of %SEARCH.

Is there a way to do it ?

  • TWiki version:Dec 2001
  • Web server:Apache
  • Server OS:SunOS
  • Web browser: Netscape
  • Client OS: Win NT

-- PetricFrank - 14 Mar 2002

Answer

Yes, you just need to install the GNU bool program, instead of egrep/fgrep - see towards the end of SearchEngineVsGrepSearch. You may need to tweak the Perl code a bit to use search forms, but I think the embedded searches work fine (I tested this locally).

-- RichardDonkin - 14 Mar 2002

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-03-14 - RichardDonkin
 
  • 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.