This question about Using an extension: Asked
--
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:
%TABLE{tablewidth="100%"}%
| *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-->[[http://www.facebook.com/profile.php?id=$3][$2]]<br>[[http://www.facebook.com$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.
Thanks!