-
-
Save edenir-anschau/a2fd921bdbb2086cbd02 to your computer and use it in GitHub Desktop.
Normalização de Strings em Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.text.Normalizer; | |
public class SemAcentoNemCedilha { | |
public static String normalizar(String s) { | |
return Normalizer.normalize(value, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", ""); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment