if ($textBlock != '') { $patterns = array ('/*/', '/?/', '/-/', '/\'/', '/\"/', '/@/', '/!/', '/%/', '/&/','/\(/', '/\)/', '/+/'); $textBlock = preg_replace($patterns, '', $textBlock); } return $textBlock; } --- Error --- FATAL ::() Compilation failed: nothing to repeat at offset 0