diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index be51a7342d..d984f41b08 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2745,7 +2745,7 @@ function get_preg_expression($mode)
return array(
'#.*?#',
'#.*?#',
- '#(.*?)#',
+ '#.*?#',
'#
$message = str_replace($match, $replace, $message);
$match = get_preg_expression('bbcode_htm');
- $replace = array('\1', '\1', '\3', '\1', '', '');
+ $replace = array('\1', '\1', '\2', '\1', '', '');
$message = preg_replace($match, $replace, $message);
}
)