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.
英数字以外のすべての文字を区切り文字として文字列を分割しようとしていますが、Java の String.split() メソッドは、結果の配列から区切り文字を破棄します。「\ W」正規表現パターンのように文字列を分割し、区切り文字を保持する方法はありますか?