Write a function to filter alphanumeric characters from string. How would you test it? Why you didn't use regular expression?
Anonymous
String s = "AZabc1253.6789/'[paz`!@#$%^&*()"; String filter = s.replaceAll("[^0-9a-zA-Z_]", ""); System.out.print(filter);
Check out your Company Bowl for anonymous work chats.