As presented, Regex Named Groups in Java is not a valid fit for this site, as it is seeking for software recommendations, which is disallowed on Stack Overflow:
It is my understanding that the
java.regex
package does not have support for named groups (http://www.regular-expressions.info/named.html) so can anyone point me towards a third-party library that does?
The reason recommendation are disallowed is explained in the help center:
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
That all being said, the (edited portion of the) top answer is perfectly valid for the Q&A format, had the question not been a library request, but rather a "How can I use named capturing groups in Java". Specifically, that named capturing groups have been in Java since Java 7 (which was released after the question was asked).
This is an old question (first asked 13 years ago) and an old answer (also 13 years old) with the Java 7 edit being around for most of that time (about 11 years). It currently has a question score of 199 and answer score of 317.
What is the proper thing to do here?
My intuition is that ideally, we'd retitle this question to something like "What Java third-party libraries support regex named groups?", close it as "not suitable for this site", then open a new question in Q&A format asking how to use named capturing groups in Java. This is a common enough issue that I feel this Q&A pair adds concrete value to this site.
Since this question is as popular and involving core functionality as it is, I figured I'd verify my assumption with the community first before throwing in my title edit, vote to close, and self-answered question.
I guess another approach in the same vein would be to create the question and give the answerer (still active high-rep user @VonC) first dibs at copying his answer over since he's clearly earned the reputation for the solid answer.
I don't think it makes sense to restructure the question to match the answer, since there are other answers tailored to the off-topic actual library request.