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