<?php // osekne retazec $auto = "Audi V8 [C]250000 Kč[/C]"; $regular = "~(.*)\[C\].*\[/C\](.*)~i"; $oseknuty = preg_replace($regular, "$1$2", $auto); // vypíše "Audi V8 " echo('"' . $oseknuty . '"');
You have javascript disabled. You will not be able to edit any code.