This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is there a way of getting a list of named groups in a regular expression without knowing those names ahead of time other than parsing the regular expression to look for the named capture groups? It would be very simple to do that, but I feel that I would be doing something that is already easily at hand, or should be.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Java 7 regular expressions, get list of named groups