softwaresaved / fuji

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

Named groups in regex #20

Open karacolada opened 6 months ago

karacolada commented 6 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"].