I tried using this but didn't work-
return value.replaceAll("/[^A-Za-z0-9 ]/", "");
Java's regular expressions don't require you to put a forward-slash (/) or any other delimiter around the regex, as opposed to other languages like Perl, for example.
/