Tags:
create new tag
, view all tags
http://testwiki.mrjc.com/twiki/bin/view/SiteReport/PrvUserCounts?raw=on shows a pattern:
%SEARCH{"Address", regex="on", excludetopic="Prv.*|Web*", header=" | *Topic* | *Site* | *Usercount* |", format=" | $topic | $pattern(\| Site Address \| (.*) \|) | $pattern(\| Number of users \| (.*) \|) | "}%

supposed to pull out the number of users in records such as this one:

http://testwiki.mrjc.com/twiki/bin/view/SiteReport/LindmarkDotnet - i.e. 9

It fails, giving the error:

 Unmatched ( in regex; marked by <--HERE in m/\| Site Address \| ( <--HERE .*/ at ../lib/TWiki/Search.pm line 788. 

I patched the server to show what the variable "$thePattern" was evaluating to.

It turns out that it truncated what I wrote:

\| Site Address \| (.*) \|

to:

\| Site Address \| (.*

Note the missing ") \| "

I suspect it is a bug with this regex:

$tempVal =~ s/$pattern(s*(.*?s*.*))/getTextPattern( $text, $1 )/ge 

Or am I doing something wrong?

More detail can be found at TWikiIrcLog:date=2003-11-21,Fri (http://koala.ilog.fr/twikiirc/bin/irclogger_log/twiki?date=2003-11-21,Fri)

-- MartinCleaver - 21 Nov 2003

On the TWiki.org server this example fails to even save as it die during preview.

-- MartinCleaver - 22 Nov 2003

Martin, could you verify if this is fixed now? Related to FormattedSearchPatternExtractionUnmatchedParenthesesError fix.

-- PeterThoeny - 28 Apr 2004

Assuming that its fixed -- SvenDowideit - 11 Jul 2004

Sorry, I've been away for a while; I only just saw the message today. I'll take a look.

-- MartinCleaver - 16 Jul 2004

Topic revision: r6 - 2004-07-16 - MartinCleaver
 
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.