Extension talk:RegexFunctions/Archive 1

Ryan, This looks extremely useful but I can't figure out how to implement it. Could you post an example? Like maybe...

Thanks, CWinDC 06:35, 9 January 2009 (UTC)
 * Well, if you viewed the syntax notes, you'd notice that the string is passed into the function, so would yield "This is the string I wish to return." All parameters such as  are valid inside of these functions as well. -- Skiz  zerz  21:42, 9 January 2009 (UTC)

Bug: $wgRegexFunctionsDisable not working with 'rsplit' and 'rreplace'
Version 1.3 (SVN Rev 48342) RegexFunctions.php: method rmatch will check whether it is disabled in $wgRegexFunctionsDisable by doing if(in_array( 'rmatch' , $wgRegexFunctionsDisable)) return;. rsplit and rreplace also do this, except that they check for 'rmatch', too, instead of checking for 'rsplit' or 'rreplace' as expected. Thanks. This is a useful extension. - Sheepy, 09:53, 12 March 2009 (UTC)

Stack Trace Error When Installed
The following is displayed on the mediawiki main page when the plug-in is enabled in LocalSettings.php. Any ideas on how to solve this? I am running MediaWiki versions 1.15.1 and up to date MySQL and PHP. There should be no other conflicts involving other plug-ins, as I was modeling my wiki page off of another with the same set of plug-ins. Thanks!

Internal error

Magic word 'rmatch' not found

Backtrace:


 * 1) 0 /var/lib/mediawiki/includes/MagicWord.php(244): Language->getMagic(Object(MagicWord))
 * 2) 1 /var/lib/mediawiki/includes/MagicWord.php(197): MagicWord->load('rmatch')
 * 3) 2 /var/lib/mediawiki/includes/parser/Parser.php(4034): MagicWord::get('rmatch')
 * 4) 3 /var/lib/mediawiki/extensions/RegexFunctions/RegexFunctions.php(49): Parser->setFunctionHook('rmatch', Array)
 * 5) 4 [internal function]: wfRegexFunctions
 * 6) 5 /var/lib/mediawiki/includes/Setup.php(310): call_user_func('wfRegexFunction...')
 * 7) 6 /var/lib/mediawiki/includes/WebStart.php(129): require_once('/var/lib/mediaw...')
 * 8) 7 /var/lib/mediawiki/index.php(42): require_once('/var/lib/mediaw...')
 * 9) 8 {main}

Make sure that you have all of the necessary files (RegexFunctions.php, RegexFunctions.i18n.php, and RegexFunctions.magic.php). If you don't have all three of them, re-download the extension (get the "Development Version (trunk)" version from the extension distributor) -- Skiz zerz  04:43, 18 February 2010 (UTC)

Thank you for helping. I did all have three files, but tried a fresh install anyway getting the "Development Version" trunk, but it still is giving me the same error when I try to enable it in the LocalSettings.php. Everything else seems to be working just fine within the Wiki (general functions and all other installed plug-ins). Any ideas? Thanks again.