This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java 7 regular expressions, get list of named groups Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java 7 regular expressions, get list of named groups" Watch "Java 7 regular expressions, get list of named groups" New topic
Author

Java 7 regular expressions, get list of named groups

Don Blodgett
Ranch Hand

Joined: Jan 09, 2006
Posts: 61
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Java 7 regular expressions, get list of named groups
 
Similar Threads
convert C# regex into java regex
Need to tokenize a String , but i need to keep what comes between "and"
Regular Expression - Match till a given string
How to parse a text file
Idea to sort a list and get a result