diff --git a/include/bbcode.php b/include/bbcode.php
index 6b733c8f4..7825914b5 100755
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -124,10 +124,14 @@ function bbcode($Text,$preserve_nl = false) {
$Text = preg_replace("/\[list\](.*?)\[\/list\]/ism", '
' ,$Text);
$Text = preg_replace("/\[list=\](.*?)\[\/list\]/ism", '' ,$Text);
$Text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '' ,$Text);
- $Text = preg_replace("/\[list=i\](.*?)\[\/list\]/sm",'' ,$Text);
- $Text = preg_replace("/\[list=I\](.*?)\[\/list\]/sm", '' ,$Text);
- $Text = preg_replace("/\[list=a\](.*?)\[\/list\]/sm", '' ,$Text);
- $Text = preg_replace("/\[list=A\](.*?)\[\/list\]/sm", '' ,$Text);
+ $Text = preg_replace("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'' ,$Text);
+ $Text = preg_replace("/\[list=((?-i)I)\](.*?)\[\/list\]/ism", '' ,$Text);
+ $Text = preg_replace("/\[list=((?-i)a)\](.*?)\[\/list\]/ism", '' ,$Text);
+ $Text = preg_replace("/\[list=((?-i)A)\](.*?)\[\/list\]/ism", '' ,$Text);
$Text = preg_replace("/\[li\](.*?)\[\/li\]/sm", '$1' ,$Text);
$Text = preg_replace("/\[td\](.*?)\[\/td\]/sm", '$1 | ' ,$Text);