Code:
<?php
$val = "Normal (and bold) text!!";
$newval = preg_replace('/[^A-z0-9 -\']/', '', $val)
echo $newval;
// Outputs "Normal and bold text!!"
?>
Why is it doing this? Have I missed something? It should only be allowing what I've asked for in the pattern - I don't see any exclamation marks being allowed.
Thanks in advance
"A computer once beat me at chess, but it was no match for me at kick boxing" - Emo Philips