if (preg_match('/\[quote=(.*?)\](.+?)\[\/quote\]/is', $post['message'])) { preg_match_all('/\[quote=(.*?)\](.+?)\[\/quote\]/is', $post['message'], $quotematch);