Index: branches/5.2.x/core/kernel/db/db_tag_processor.php =================================================================== diff -u -N -r16644 -r16712 --- branches/5.2.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 16644) +++ branches/5.2.x/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 16712) @@ -1,6 +1,6 @@ Application->ReplaceLanguageTags($title, false); // 3. find and replace any replacement vars - preg_match_all('/#(.*_.*)#/Uis',$title,$rets); + preg_match_all('/#([a-z\d\-]+?_[a-z\d]+?)#/is', $title, $rets); + if ($rets[1]) { $replacement_vars = array_keys( array_flip($rets[1]) ); foreach ($replacement_vars as $replacement_var) {