softwaresaved / fuji

FAIRsFAIR Research Data Object Assessment Service
MIT License
0 stars 4 forks source link

Named groups in regex #20

Open karacolada opened 11 months ago

karacolada commented 11 months ago

More of a quality of (developer) life feature. Regexes are used throughout the code, and instead of referring to groups by numbering, it might be nicer to refer to the groups by names, e.g. (?P<domain>[a-zA-Z]+) and match["domain"].