RFR: 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern

Raffaello Giulietti rgiulietti at openjdk.org
Mon Apr 3 17:54:13 UTC 2023


On Mon, 3 Apr 2023 17:43:55 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

> Add `split()` overloads to `String` and `java.util.regex.Pattern` that, in addition to the substrings returned by current `split()` variants, also return the delimiters matching the regular expression.

Also see [here](https://mail.openjdk.org/pipermail/core-libs-dev/2023-March/103379.html) for some background discussion.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13305#issuecomment-1494734763


More information about the core-libs-dev mailing list