This is a little puzzling...I'm trying to allow users to input their name in any language. I want to exclude anything that isn't a letter, a number or the chars ., _, or -.
Using the locale doesn't work [:alnum:] as the system has one language...utf-8. As the default it's stripping out even anything accented.
mb_eregi_replace() is allowing chars that shouldn't be allowed: ^ & *...etc.
Perhaps, I'm not thinking backwards well enought today, but aside from doing a rather odd $search and $replace using "array('@', '$',...you get the idea) I can't see a simple way of pulling this off?
Just looking for a direction on this...if there is one.
Thanks... 😉