$regExp = '\[code\](.*)\[\/code\]';
a metoda codeParse wyglada tak
private function codeParse( $text ) { { $text = '<div class="code">' . $text[1] . '</div>'; } return $text; }
jak jest pojedynczy code lub sa dwa ale oddzielne to jest ok, ale jak juz jeden dam w drugi to nie za bardzo (zagniezdzone)
podbijam