]+>)([^<]+)()!', array(&$this, 'ltitle'), $text ); if ($pos = strrpos($text, $sep)) { $text = substr_replace($text, ' ja ', $pos, strlen($sep)); } return $text; } function ltitle($matches) { return $matches[1] . 'Näytä kaikki ' . strtolower($matches[3]) . ' kirjoitetut artikkelit"' . $matches[4] . strtolower($matches[5]) . $matches[6]; } } $wppAihelause = new Aihelause; ?>