I use this code:
preg_replace('/[^A-ÿ\d _]+/', 'NO' , $mystring]
To find and replace everything that is not alphanumerical, or a space or an underscore, with ***
Only problem is that, if my input is:
tes<<t
it outputs:
tesNOt
and I would like:
tesNONOt
I would like it replacing EVERY occurrence of the 'wrong' character.
Thanks for your help!