Menu

#2 named subpatterns to dictionary

open
API (7)
5
2008-06-01
2008-06-01
No

Unless I'm mistaken, in order to get the named subpatterns you use the getCapturesWithRegexAndReferences method and provide it with the names and storage locations. It would be nice to to have something similar to Pythons re matches groupdict method where a dictionary of all named subpattern matches is returned.

Discussion


Log in to post a comment.