PatternMatcherPlugin

This is a design document for a plugin yet to be written.

The pattern matcher plugin does three things:
  1. Perform search-and-replace within some subsection of a topic.
  2. Perform search-extract-replace within some subsection of a topic, i.e. the original patterns remain where they are and the modifed copies are collected and printed in one spot.
  3. Collect all occurrences of a pattern and pass them via http to a script for processing; insert the output of the script in the rendered text.

Syntax Rules

Examples

See the perlre manual page for further possiblities. Perl regular expressions are incredibly powerful!

Plugin Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

Plugin Info

Plugin Author: TWiki:Main/LutzPrechelt
Plugin Version: 29 Jun 2004 (V1.000)
Change History:  
29 Jun 2004: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
TWiki:Plugins/Benchmark: GoodStyle nn%, FormattedSearch nn%, PatternMatcherPlugin nn%
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/PatternMatcherPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/PatternMatcherPluginDev

Related Topics: DefaultPreferences, System.Plugins, TWiki:Plugins/PhantomPlugin

-- TWiki:Main/LutzPrechelt - 29 Jun 2004