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 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.

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

See also http://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

 
Topic revision: r3 - 2006-06-01 - TWikiGuest
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.