%<plugin>_<setting>%, i.e. %GLOBALREPLACEPLUGIN_SHORTDESCRIPTION%
data/debug.txt) TestTopic )
[character] with [\character], e.g. [}] with [\}]. This applies to "Replace search string" field only. [(\n)] in the "Replace search string", at the end of the line. This will be stored for use in the "Replace string". You can reference it by [$x], where [x] is a number 1-9. [Shutdown}% |]. "Replace search string": Shutdown\}\% \|(\n) and "Replace string": Shutdown}% |$1Something$1asdf$1
[| Keywords: |]. "Replace search string": \| \*Keywords\:\* \|(.*?)(\n) and "Replace string": Something $2| *Keywords: |$1$2
[| Keywords: |] and ends with or contains the string [Interrupt}%]. "Replace search string": \| \*Keywords\:\* \|(.*?)Interrupt\}\%(.*?)(\n) and "Replace string": Something $3| *Keywords: |$1Interrupt}%$2$3
GlobalReplacePlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/GlobalReplacePlugin.txt | Plugin topic |
data/TWiki/GlobalReplacePlugin.txt,v | Plugin topic repository |
data/TWiki/GlobalSearchAndReplace.txt | Search replace form topic |
data/TWiki/GlobalSearchAndReplace.txt,v | Its repository |
data/TWiki/GlobalSearchAndReplaceHelp.txt | Help topic |
data/TWiki/GlobalSearchAndReplaceHelp.txt,v | Its repository |
data/TWiki/GlobalSearchAndReplaceTopics.txt | Replace result topic |
data/TWiki/GlobalSearchAndReplaceTopics.txt,v | Its repository |
lib/TWiki/Plugins/GlobalReplacePlugin.pm | Plugin Perl module |
pub/TWiki/Plugins/GlobalSearchAndReplaceHelp/GSR.gif | Screenshot |
lib/TWiki/Plugins/%TOPIC.pm file, or edit the file and return 0 in sub initPlugin.
| Plugin Author: | TWiki:Main/PaulineCheung |
| Plugin Version: | 03 Nov 2004 (V1.002) |
| Change History: | |
| 31 Oct 2005: | TWiki:Main.MikkoLaakso: Added some examples, tested on W2K. |
| 03 Nov 2004: | TWiki:Main/PeterThoeny: Added $topic to replace string |
| 16 Mar 2004: | Fixed bug where topics with underlines did not get handled properly |
| 07 Feb 2004: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | TWiki:Plugins/SpreadSheetPlugin |
| Perl Version: | 5.005 |
| TWiki:Plugins/Benchmark: | Good Style 99%, Formatted Search 99%, Global Replace Plugin 99% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/GlobalReplacePlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/GlobalReplacePluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/GlobalReplacePluginAppraisal |