Ideas for Arc XP

Named capture groups for resolver

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.

  • André Jaenisch
  • Oct 22 2021
  • Future consideration
  • Attach files
  • André Jaenisch commented
    27 Oct, 2021 07:12am

    🥳

    Looking forward to it!

  • Admin
    Fatih Yildiz commented
    26 Oct, 2021 07:30pm

    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.