decibel
10-25-2006, 04:53 PM
Hello, here the code:
// Trim garbage characters from the detailed descriptions
$patterns = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151));
$replacements = array("'","'",'"','"','-','-');
if($notes != ""){
$notes = preg_replace($patterns, $replacements, $notes);
}
Im not the great with reg exp yet, and I am getting this warning message, any ideas why its giving me this message?
Warning: preg_replace() [function.preg-replace]: No ending delimiter '?' found in C:\Program Files\blah\blah\www\admin\import.php on line 148
$notes is user entered data in text field, perhaps im encountering a character that is breaking the reg exp?
// Trim garbage characters from the detailed descriptions
$patterns = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151));
$replacements = array("'","'",'"','"','-','-');
if($notes != ""){
$notes = preg_replace($patterns, $replacements, $notes);
}
Im not the great with reg exp yet, and I am getting this warning message, any ideas why its giving me this message?
Warning: preg_replace() [function.preg-replace]: No ending delimiter '?' found in C:\Program Files\blah\blah\www\admin\import.php on line 148
$notes is user entered data in text field, perhaps im encountering a character that is breaking the reg exp?