Let DataManager path matching work with multiple matches
This would allow more advanced target_path
specifications, removing the limit for a single match.
Proposal
- Rework the
path_regex
parameter and the format string fortarget_path
in theDataManager.load
method. - Evaluate whether a backwards-compatible change can be made here
- We currently allow only a single
match
, which is then used intarget_path
. It contains the first match. - We could use
matches
to contain all matches...- ... it could be a dict with using named matches?
🤔 - ... but what about unnamed matches?
- ... it could be a dict with using named matches?
- We currently allow only a single
How to test the implementation?
Extend tests to regex patterns with more than one match.