They&#x27;re untyped and inconvenient to put back into a structure: you have to define the struct then a mapping function from regex matches to the struct. This takes care of the mapping through the struct you have to define, and provides somewhat clearer separation of the components (akin to using a VERBOSE flag in some regex engines).<p>Plus not all regex engines support named capture groups, JS&#x27;s regex don&#x27;t, and while Go&#x27;s engine <i>technically</i> supports them it might as well not: you can&#x27;t index into a match using that, you get a list of group names of size the total number of match groups, and the name at index i is the name of the i&#x27;th match group.