Loading...
 
Perform a regular expression search and replace

Plugin Regex

Use this wiki plugin to use a "regular expression" style search expression from another wiki page to search for and replace text in the body of the plugin (between the REGEX tags).

Parameters

Perform a regular expression search and replace
Introduced in Tiki 1. Required parameters are in bold.
Go to the source code
Preferences required: wikiplugin_regex

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:

  1. Place the search pattern (enclosed with forward slashes) and replacement text on a separate wiki page, separated by two colons ( :: ). For example:
    /search pattern/::replacement text
  2. Then enter that page name as the pageName parameter value of the plugin.
  3. The text in the body of the plugin (between the 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".

Example

This code:

Copy to clipboard
{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.

Aliases

Plugin Regex | PluginRegularExpression | Plugin RegularExpression | Plugin Regular Expression


Created by lindon. Last Modification: Wednesday 07 August, 2019 10:01:32 GMT-0000 by Yves Kipondo.

doc.tiki.org

Get Started

Admin Guide User Guide

Keywords

Keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting
Articles and Submissions
Backlinks
Banners
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution
Cookie
Copyright
Credit
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
Draw
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Mail-in
Map with Mapserver
Menu
Meta Elements
Mobile Tiki and Voice Tiki
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags
Task
Tell a Friend, alert + Social Bookmarking
TikiTests
Theme CSS & Smarty
Tiki Manager
Trackers
Transitions
User Administration including registration and banning
User Files
User Menu
Watch
WebDAV
Webmail
Web Services
Wiki History, page rename, etc
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG
XMLRPC

Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki