Extension:RegexParserFunctions/ja

RegexParserFunctions adds a parser function called 'regex' (or 'regexp') which is used to perform regular expression pattern matching and replacement.


 * Project Homepage: RegexParserFunctions Extension - Jimbojw.com
 * Source Code: RegexParserFunctions.php
 * Licensing: RegexParserFunctions is released under The MIT License.

インストール

 * 1) Download RegexParserFunctions, and be sure to rename the downloaded file to RegexParserFunctions.php.
 * 2) Drop this script in $IP/extensions
 * Note: $IP is your MediaWiki install dir.
 * 1) Enable the extension by adding this line to your LocalSettings.php:

使用法
Once installed, editors of your wiki can evaluate regular expressions in one of two ways: simple match, and replacement.

For example, say you're trying to grab the last portion of a Title which is using '/' delimiting subpage notation. For that, you could use:

RegexParserFunctions を使用しているウェブサイト

 * http://mtg.wikia.com
 * http://de.memory-alpha.org
 * http://potbs.wikia.com

関連項目

 * ReplaceSet - an excellent substitute for using nested #replace commands when you need to perform a sequence of replaces on a single text string.
 * StringFunctions - some helpful string operations.
 * Extension:RegexFunctions/ja - just another regex extension.
 * Extension:Regex Fun/ja - newer, compatible regex extension providing  as well as some other functions.