New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Asked

Replacement param in format in EXTRACT limited to $9?

-- RaymondLutz - 06 Feb 2012

When I use formal parameters more than $9, like $10, $11, they do not work. Instead, the format="..." function grabs item $1 and appends 0 or 1, for example. This is supposed to work in Perl, so I am wondering if you are doing your own regex replacement that is limited to one digit.

To be complete, here is my use:
|  *Author / Thread Link / Attachment*  | *Top Comment (date)*  |
%EXTRACT{topic="%TOPIC%Admin" expand="on" pattern="(\d+)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\t]*)\t([^\r\n]*)[\r\n]+" format="|<!--$2-->[[$3][$2]]<br>[[$7][Thread]]<br>URL: [[$10][$11]]  |<!--$6-->($5)<br>$4  |$n"}%

This draws from a data file attached and included into %TOPIC%Admin which is a tab-separated-values file with 11 data fields. When I try to use fields $10 and $11, it pulls field $1 and appends a 0 and 1 respectively.



QuestionForm edit

Subject Using an extension
Extension FilterPlugin
Version Foswiki 1.0.5
Status Asked
Related Topics
Topic revision: r1 - 06 Feb 2012, RaymondLutz - This page was cached on 20 Sep 2018 - 20:50.

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