Tags:
create new tag
view all tags

SID-01900: Search and display multiple table columns

Status: Answered Answered TWiki version: 4.2.1 Perl version: 5.8.8
Category: CategorySearch Server OS: Linux Last update: 11 years ago

How would you search a given topic that contains following table and display, in a new table, all of the columns EXCEPT column 1?

Col 1 Col 2 Col 3 Col 4
One Two Three Four
1 22 333 4444
A B C D

There are a number of examples of pulling a single column from a table, but not multiple columns. Your help is greatly appreciated.

Thanks.

-- Bob Mellinger - 2014-04-02

Discussion and Answer

Use a $pattern() format in a multiple="on" search:

Col 2 Col 3 Col 4
Two Three Four
22 333 4444
B C D

Do a raw view to see how this works.

Details in VarSEARCH, FormattedSearch, RegularExpression.

-- Peter Thoeny - 2014-04-02

So elegant and simple. Thanks very much.

-- Bob Mellinger - 2014-04-02

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Search and display multiple table columns
SupportCategory CategorySearch
TWiki version 4.2.1
Server OS Linux
Web server Apache 2.2.22
Perl version 5.8.8
Browser & version Chrome 33.0.1750.154m
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2014-04-02 - BobMellinger
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.