• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4311: Negation within regular expressions

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement No Action Required   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


TWiki extends the regular expressions with an and search.

I would like to see TWiki extend regexen with negation.

In Perl, I can say !~ (can't do that in TWiki). What I want is even more useful.

Say I want to search across a bunch of pages with TWiki forms attached. One of the foorm items is status. The status can be one of New, Open, In Progress, on Hold, or Closed.

I want to set up a formatted search to bring back a list of all pages where status is not Closed.

I can say status matches (New|Open|n Progress|On Hold) but that's over-constrained, suboptimal, and risky if I add a new status code.

I just want to say NOT (CLosed)

-- TWiki:Main/VickiBrown - 27 Jun 2007

Vicki You should review the new feature to be released in 4.2 called QuerySearch

In this you can use negate and if your regexes are mainly looking for formfield values then I think this will make you very happy.

-- TWiki:Main.KennethLavrsen - 29 Jun 2007

I believe Vicki's requirement is adequately addressed by query searches. No action.


Summary Negation within regular expressions
ReportedBy TWiki:Main.VickiBrown
Codebase ~twiki4
SVN Range TWiki-4.1.2, Mon, 25 Jun 2007, build 14278
AppliesTo Engine

Priority Enhancement
CurrentState No Action Required


TargetRelease n/a

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2007-06-30 - TWikiUserMapping_CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback