In a resolver, I currently have to pick the capture group by index for mapping a query parameter to a param of a content source.
It would make things easier if the regular expression would allow for named capture groups, that could be referenced by name:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Groups_and_Ranges
Assuming you are using Node.js, that should be supported. But even other implementations of the RegExp syntax have this concept.
🥳
Looking forward to it!
Hi Andre,
Thanks for submitting this idea. The use case you describe definitely makes sense. We are marking it as "future consideration" and will plan in the future Engine release.