I tried using this but didn’t work- return value.replaceAll("/[^A-Za-z0-9 ]/", ""); 13 Answers 13 Tags: javanon-alphanumericregex