IPED icon indicating copy to clipboard operation
IPED copied to clipboard

Add support for named groups in metadata extraction on ExternalParser

Open patrickdalla opened this issue 1 year ago • 3 comments

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.

patrickdalla avatar Jan 26 '24 11:01 patrickdalla

Do you mean PR #1727 closes this, right?

lfcnassif avatar Jan 26 '24 12:01 lfcnassif

Yes, 467 is the original issue that PR #1727 solves, thanks.

patrickdalla avatar Jan 26 '24 12:01 patrickdalla

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.

patrickdalla avatar Jan 26 '24 12:01 patrickdalla