Item1946: actionsearch: negation of regular expressions for web or who

Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: ActionTrackerPlugin
Reported By: PhilippLeufke, HolgerHain
Waiting For:
Last Change By: CrawfordCurrie


In many cases it's necessary to define negated expressions in ACTIONSEARCH, e.g.:
  1. for the web parameter: search all webs but {Sandbox, Trash, System}
  2. for the who parameter: look for all orphaned actions, i.e. the who field is "".

Negating the "=" by use of "!" doesn't seem to work here and all our efforts in searching fro how to negate a regex1, 2 weren't fruitful either.

We noticed that even in the plugin's documentation a rather dirty and not very failsafe hack to pick the webs of interest is used: web=[CEIMPSW].*

Using NOSEARCHALL for this task is not generally an option.

If there are ways to define the abovementioned examples, please let us know (and a hint in the documentation would be welcome). Else: regarding the web parameter one could think of a excludeweb parameter as well.

-- PhilippLeufke - 19 Aug 2009

UPDATED Regarding 1.: Just noticed that this can be found in the documentation. For everyone who is interested: web="(?!Sandbox|System|Trash|TWiki).*"

But still we have no clue how to look for orphaned tasks...

-- PhilippLeufke - 24 Aug 2009

Why can't you %ACTIONSEARCH{who=""}% ?

-- CrawfordCurrie - 05 Nov 2009

Good question. I thought someone could tell me... Just tested it once more, but it just results in an empty list, although there are orphaned tasks with attribute who="" in raw code.

Does it work for you?

-- PhilippLeufke - 05 Nov 2009

It does now.

-- CrawfordCurrie - 28 Jan 2011

ItemTemplate edit

Summary actionsearch: negation of regular expressions for web or who
ReportedBy PhilippLeufke, HolgerHain
Codebase 1.0.7
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component ActionTrackerPlugin
Priority Normal
CurrentState Closed
Checkins ActionTrackerPlugin:269069e53857
TargetRelease n/a
ReleasedIn n/a
Topic revision: r6 - 28 Jan 2011, CrawfordCurrie - This page was cached on 17 Sep 2021 - 15:11.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy