String originText = "CocoHiByeHaha331";
String CapitalSpaceText = text.replaceAll("\\d+", "").replaceAll("(.)([A-Z])", "$1 $2");
-> Coco Hi Bye Haha
์ซ์ ์ ๊ฑฐ ํ ๋๋ฌธ์ ์์ ๋์ด์ฐ๊ธฐ ์ถ๊ฐ
'๊ฐ๋ฐ์ํ > Java' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Java] Null String Casting (0) | 2022.04.29 |
---|---|
[Java] Map ์ ๊ณต ๋ฉ์๋๋ค ์ ๋ฆฌ (0) | 2022.04.26 |
[JAVA] String ์ค๋ณต์ ๊ฑฐ Stream (0) | 2022.03.22 |
[JAVA] Case Format ๋ณ๊ฒฝ (UPPER_CAMEL, LOWER_HYPEN...) (0) | 2022.03.22 |
[JAVA] char ์ ๋ฆฌ (0) | 2022.03.01 |