IPED
IPED copied to clipboard
Add support for named groups in metadata extraction on ExternalParser
Some advanced regex may include more than 2 groups, being some of the groups used only to filter the result, containing no useful information. So, the use of the named groups "key" and "value" would identify better which of the parts of the match would be the real content to add as metadata.
PS.: This in fact was already implemented 7 months ago in PR #467, commit 91a8ac6. But it is a more generic implementation that can be used by other enhancements or custom user profiles, it is good to register as an new Issue (even to avoid some repeated implementation while PR 467 is not approved). PR #467 closes this issue.
Do you mean PR #1727 closes this, right?
Yes, 467 is the original issue that PR #1727 solves, thanks.
Additionally, the implementation falls back to the old implementation in case there is no named group with key and value names, so it is backward compatible with the current config file.