Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hol?a por -> Hol a
- private String escapaCaracter(String valor) {
- String valorOk = " ";
- try {
- valorOk = valor
- .replaceAll("/", "-")
- .replaceAll("\\", " ")
- .replaceAll("¿", " ")
- .replaceAll("?", " ")
- .replaceAll("#", " ")
- .replaceAll("<", " ")
- .replaceAll(">", " ")
- .replaceAll("[", " ")
- .replaceAll("]", " ")
- .replaceAll("{", " ")
- .replaceAll("}", " ");
- } catch (Exception e) {
- if (s_log.isLoggable(Level.FINEST)) {
- s_log.log(Level.FINEST, "Ha fallado el escapaCaracter para el valor: " + valor);
- }
- }
- return valorOk;
- }
- java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 0
- ?
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement