Tags:
create new tag
view all tags

SID-01708: Formatted Search with a unique Condition

Status: Answered Answered TWiki version: 5.1.3 Perl version:
Category: CategorySearch Server OS: Last update: 10 years ago

Is it possible to create a formatted search that displays all topics in a web where the first letter of the topic name is a specific letter.

For example, a search to display all topics in the web that begin with the letter 'a'. I am not quite sure if string manipulation is possible in Twiki's markup languge.

Thanks for your help,

James

-- James DiDonato - 2013-05-24

Discussion and Answer

This is a simple SEARCH. Use these parameters:

"a" scope="topic" topic="a*"

Details in VarSEARCH.

-- Peter Thoeny - 2013-05-24

Corollary question: How to display a list of topics where the Topic name is for example (note use of wild cards ????-??-??-*?

-- TWiki Guest - 2016-08-01

That's still rather easy: a SEARCH with the following parameters: ".4-.2-.2-.*" type=regex - see VarSEARCH and RegularExpression for examples. The regular expression is the perl style, not the shell-style, though: "." is any character, "-?" is an optional minus sign and "-*" are zero or more minus signs. Still, the examples on RegularExpression should get you going.

-- Harald Jörg - 2016-08-02

A modified regular expression that find the indicated pattern: ".{4}-.{2}-.{2}-.*"

-- Peter Thoeny - 2016-08-03

      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 Formatted Search with a unique Condition
SupportCategory CategorySearch
TWiki version 5.1.3
Server OS

Web server

Perl version

Browser & version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2016-08-03 - PeterThoeny
 
  • 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.