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 upper case.

To uppes case


converts all chars in text to lower case.

Replace case sensitive


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

Replace case insensitive


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

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.