the wikipedia regepx in the regexps-Plugin does not handle things like
Code: Select all
[(wiki-source|another title)]
Code: Select all
<?php
// Wiki-Reference.
//
$regexpArray = array(
'SearchArray'=>array(
"/\[\((.*)\|(.*)\)\]/U",
"/\[\((.*)\)\]/U",
),
'ReplaceArray'=>array(
'<a href="http://de.wikipedia.org/wiki/\\1" target="_blank">\\2</a>',
'<a href="http://de.wikipedia.org/wiki/\\1" target="_blank">\\1</a>'
)
);