I want to use
%SEARCH{...}% variable to extract contents from a topic with formatted table.This topic is not a form.So i cant use form field parameters
|
|
| Name |
Country |
| abc |
xyz |
| def |
pqr |
|
|
|
i want to get table with only name column and its values as in
I used
%SEARCH{"[N]ame" scope="text" topic="currenttopic" nototal="on" header="Name:" format=" $text" }%
But this is giving me the entire table and not the particular name and its values
Please help
--
PrathibaRao - 02 Jul 2008
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Look at the search patterns explained in the
SearchPatternCookbook Topic in Twiki Web : "Extract values from a table " .. All you need is there, and you'll find the reponse there. If you deal with more complicated searchs, remember that a "formatted search" is like a
cat pipe grep pipe awk : you can open a terminal and type
cat twiki_dir/data/your_web/your_topic.txt and then use
grep : this will help to find the regexp you need ..Did this help ?
--
OlivierThompson - 05 Jul 2008