hid-barcode-scanner icon indicating copy to clipboard operation
hid-barcode-scanner copied to clipboard

Access filter regex capture groups in custom template

Open Fabi019 opened this issue 10 months ago • 0 comments

There should be a way to address a specific capture group in a custom temlplate if more than one were defined in the regex filter.

Currently only the first group is extracted and can be used with the {CODE} template. Instead it should be possible to specify the index of the group.

For example: {CODE%2} to access the second capture group. When the group does not exist, there should be either a error or default to the whole code instead.

Fabi019 avatar Apr 05 '24 21:04 Fabi019