How can I strip punctuation except for these characters . = $ \' - € %
.
=
$
\'
-
€
%
preg_replace("[^-\w\d\s\.=$'€%]",'',$subject)
although it would be more correct and easy to specify the characters you want to strip, instead of characters (from an unknown set) you don't want to strip.