|
Parameters | Accepted Values | Description | Default | Since |
---|---|---|---|---|
(body of plugin) | Each line of content is evaluated separately | |||
pageName |
Name of page containing search and replace expressions separated by two colons.
Example of syntax on that page: /search pattern/::replacement text |
pageName | 1 |
To use this plugin:
::
). For example:
/search pattern/::replacement text
pageName
parameter value of the plugin.
REGEX
tags) will be searched and each match of the search pattern will be replaced by the replacement text.
This plugin mimics the preg_replace PHP function. For advanced search patterns, see http://www.php.net/manual/en/reference.pcre.pattern.syntax.php in the online PHP manual or simply search the internet for "regular expression syntax".
This code:
{REGEX(pageName="PluginRegex Example")}I had a horrible day.{REGEX}
Plus this syntax on a separate wiki page called PluginRegex Example:
/horrible/::wonderful
Would produce:
I had a wonderful day.
Plugin Regex | PluginRegularExpression | Plugin RegularExpression | Plugin Regular Expression