Extension:StringUtils

StringUtils is a very simple MediaWiki extension to manipulate strings. It may be used to translate characters (to lower/upper case) or to replace sequences in a string.

To lower case


converts all chars in text to lower case.


 * Note: it is unclear how this differs from the mediawiki core function ...

To upper case


converts all chars in text to upper case.


 * Note: it is unclear how this differs from the mediawiki core function ...

Replace case sensitive


replace search with replace in text where char case in search must match those in text.


 * Note: a replace function is available in the standard Parserfunction extension.

Replace case insensitive


replace search with replace in text where char case in search will be ignored.


 * Note: case-insensitive replace is not available in the standard Parserfunction extension.

Examples
produces:

THIS IS A TEST.

this is a test.

produces:

Foo ZOO bar.

Foo ZOO ZOO.

Installing
Copy this into a file called $mediwikipath/extensions/StringUtils/StringUtils.php:

Copy this into a file called $mediwikipath/extensions/StringUtils/StringUtils.i18n.php:

Then add to the end of LocalSettings.php.