Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これよりも効率的に文字列を分割する方法はありますか?
String input = "=example>"; String[] split = input.split("="); String[] split1 = split[1].split(">"); String result = split1[0];
結果は「例」になります。
これを試して
String result = input.replace("[\\W]", "")