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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.