I'm having problems to capture and filter out a strange character some data came with, which is causing JSON data which include it to not being correctly parsed. I don't know why, since it's not included in the white list I created with this regular expression:
$string = preg_replace('/[^\w\dñÑáéíóúÁÉÍÓÚüܺª\-_\/\s\\<>,;:.*\[\]\(\)+?¿!&%@=]/', '', $string);
Testing regular expression on Regexr. As you will see, this strange character is not captured
This is how it is displayed in the browser:
And this is how it's displayed in Pluma (a Linux editor):
When I copy it and try to insert it in Google, for instance, nothing is inserted. Really strange. I've never bumped into any situation like this.
Any idea on how to handle it?