On Tue, 20 May 2025 16:59:10 GMT, kieran-farrell <d...@openjdk.org> wrote:

> New API to the String.java class - replaceAllMapped(String, 
> Function<MatchResult, String>) that allows regex based replacement via a user 
> defined function allowing dynamic replacemnt based on the match. It delegates 
> to the already existing Pattern.matcher().replaceAll(Function).

Please elaborate on the rationale and use cases. I don't this a compelling API 
or functionality. Tnx.

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

PR Comment: https://git.openjdk.org/jdk/pull/25335#issuecomment-2895494882

Reply via email to