1
In the method codePreConv()
$patterns = "/[code([^]]*?)](.*)[/code]/esU";
$replacements = "'[code\1]'.base64_encode('\2').'
'";
$text = preg_replace($patterns, $replacements, $text);[/code]
the regular expression [code([^\]]*?)\], why do we need the "?" after "*"?
As I know, the [code([^\]]*)\] still works.
E.g. The original string is "[codeabcd]", the expression [code([^\]]*)\] still can get it. So can I delete the "?" from the expression?