Tags:
create new tag
view all tags

Question

Hi,

I've tried many hours with regexp to find out some chars from a topicname. My problem:

  • Every topicname ends with "Start"
  • I search the String before Start ex: (BlAStart -> i need only BlA for a nested search)
  • $pattern looks only in the content of the site, and there the topicname is not available
  • there is any pattern for the variable $topic?

greez Patrick

Environment

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: SunOS 5.9
Web server: Apache 2.0.59
Perl version: v5.6.1
Client OS: win2k
Web Browser: IE
Categories: Search

-- TWikiGuest - 30 May 2006

Answer

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.

You can use a SpreadSheetPlugin formula to strip off part of a topic name. Example:

See also https://www.twiki.org/cgi-bin/view/Plugins/ExtensionsDevHeader?raw=on

If you use a CALC in a nested search you need to escape the percent sign so that CALC evaluates once per hit. Example: format="$percntCALC{$SUBSTITUTE($SUBSTITUTE($topic-XXXX, Topicname-XXXX,),-XXXX,)}$percnt"

-- PeterThoeny - 30 May 2006

Hi Twiki-God

Thank you for your answer it works perfectly! I lost 10 hours for tat little thing! frown

greez patrick

-- TWikiGuest - 01 Jun 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-06-01 - TWikiGuest
 
  • 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.