Tā nu saskāros ar problēmu, kad man izmeta šadu bridinajumu: Warning: preg_replace() [function.preg-replace]: Empty regular expression ............
koda gabaliņš kura dēļ šis bridinājums tika izmests ir zemāk:
$title = $_POST['title'];
$pattern = array('/ē/','/ū/','/ī/','/ā/','/š/','/ģ/','/ķ/','/ļ/','/ž/','/č/','/ņ/','/Ē/','/Ū/','/Ī/','/Ā/','/Š/','/Ģ/','/Ķ/','/Ļ/','/Ž/','/Č/','/Ņ/','/\//', '/\^/', '/\./', '/\$/', '/\|/','/\(/','/\)/','/\[/','/\]/','/\*/','/\+/','/\?/','/\{/','/\}/','/\,/','/!/','/@/','/#/','/%/','/&/','/=/',' ');
$replace = array('e','u','i','a','s','g','k','l','z','c','n','E','U','I','A','S','G','K','L','Z','C','N','','','','','','','','','','','','','','','','','','','','','','','','','','','_');
$titleUrl = preg_replace($pattern,$replace,$title);
$_POST['title'] ir vienkars raksta nosaukums.