Skip to content

Instantly share code, notes, and snippets.

@gaalha
Created January 16, 2019 14:43
Show Gist options
  • Save gaalha/9cc9f19fcb147d6bf7f974bf1d47bbfa to your computer and use it in GitHub Desktop.
Save gaalha/9cc9f19fcb147d6bf7f974bf1d47bbfa to your computer and use it in GitHub Desktop.
Remover plecas de un String con Java
private static String noSlash() {
String strToken = "$2a$10$RA5//G2xuVVPc1JHa62bE/.uOsTPwdsR3BCFjMDcNojvjisNi/0.ZOsi";
return strToken.replaceAll("\\/", ""); // $2a$10$RA5G2xuVVPc1JHa62bE.uOsTPwdsR3BCFjMDcNojvjisNi0.ZOsi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment