I've created a form asking a user to enter a text; the user can press
[enter] key or any other "strange" non printable char that i want to strip
away from the entred text and replace it with a " " (whitespace).
I've prepared a line with preg_preplace function but it seem doesn't work.
By the way:
$oggetto = preg_replace("(\0-\037)|(\0177-\0377)", "\040",
$_POST['oggetto']);
The result is:
Warning: No ending matching delimiter ')' found in
E:\WWWTest\biblio\newdoc.php on line 44
Any suggestion?
Thanks everyone!
Francesco