ppkarwasz commented on PR #1382: URL: https://github.com/apache/commons-lang/pull/1382#issuecomment-2888590681
> There are so many possibilities of combining `Pattern`, `Matcher`, and `MatchResult` that I don't see why this _specific_ use case needs to be here. For example, where would this be reused in Commons Lang or from other Commons libraries? Good point! @komatzu1337, could you share a few concrete examples where this method would be especially useful—either in real-world projects or potential usage within Commons libraries? The current unit tests illustrate some interesting scenarios, but they can be addressed using existing utilities: - Splitting a sentence into words can be done with `StringUtils.split`. - To extract numbers from a sentence, you could split into words and then filter those that are numeric. Understanding your intended use cases would help us evaluate whether this method brings enough added value and general applicability to warrant inclusion here. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
