Created
January 14, 2020 23:07
-
-
Save parzibyte/15efc557766acf7b63528fec99ad6506 to your computer and use it in GitHub Desktop.
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
cadena = "Esto es un poco de código que entienden los <strong>navegadores web como chrome 80</strong>, es para enfatizar <strong>texto</strong>"; | |
cadenaRemplazada = cadena.replaceAll("<strong>([\\ \\w\\d]+)<\\/strong>", "<u>$1</u>"); | |
System.out.printf("Antes:%s\nDespués:%s\n", cadena, cadenaRemplazada); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment