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
--
TWikiGuest - 30 May 2006
Answer
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!
greez patrick
--
TWikiGuest - 01 Jun 2006