StringReplacePlugin

This is a plugin used to replace certain strings with predefined strings. It is not a global plugin, it will only replace when explicitly used. Only replaces the exact strings defined. A very precise replacer so to speak.

Syntax Rules

%STRINGREPLACE{ ... }%

The input to StringReplacePlugin can be either a string, %STRINGREPLACE{"This is a string"}%, or a variable, %STRINGREPLACE{%MYVARIABLE%}%

Plugin Settings

You can define string replacements in TWiki.StringsToReplace, or place the topic in any web. The StringsToReplace in the webs will be used instead of the one in the TWiki web.

Just create the empty topic StringsToReplace in the TWiki web, or in the web you want to replace in, and use the following syntax

String to replace = Replacement string

ex.

CC392746 = Course in Stem Cell Biology and Regenerative Medicine

Any whitespace infront or behind the strings will be removed, meaning these two will be read as the same key

   MyKey   =
MyKey= 

Plugin Installation Instructions

Not published (yet).

Plugin Info

Plugin Author: Martin Dahlö
Copyright: © 2001-2007, TWikiContributor
License: GPL (GNU General Public License)
Plugin Version: 1.0 (14 Jul 2008)
Change History:
14 Jul 2008: Initial version
Topic revision: r3 - 2008-07-17 - MartinDahlo
 
This site is powered by the TWiki collaboration platformCopyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.StringReplacePlugin.