Tradotto: un tag (di chiusura o apertura) OR uno o più caratteri che non siano <codice:Pattern.compile("(</?\\w+>)|[^<]+");
E nota che nel tuo pattern </?\\w+\\>, l'escape per > è superfluo.
Tradotto: un tag (di chiusura o apertura) OR uno o più caratteri che non siano <codice:Pattern.compile("(</?\\w+>)|[^<]+");
E nota che nel tuo pattern </?\\w+\\>, l'escape per > è superfluo.
Andrea, andbin.dev – Senior Java developer – SCJP 5 (91%) • SCWCD 5 (94%)
java.util.function Interfaces Cheat Sheet — Java Versions Cheat Sheet