EliziumNet / Loopz

PowerShell iteration utilities with additional tools like the Parameter Set Tools
https://eliziumnet.github.io/Loopz/
MIT License
3 stars 0 forks source link

Rename-Many (move match); Named group captures inside Anchor not updated in With #137

Closed plastikfan closed 3 years ago

plastikfan commented 3 years ago

Anchor named captures should be resolved like they are for Copy and Pattern captures. The ${_a} for the whole anchor match is currently supported, but not named capture groups.

plastikfan commented 3 years ago

Actually, this was not quite right, the anchor named group references are already implemented. The only deficiency was storing the Anchor named groups in the Diagnostic info. Also, the ordering of named groups between Copy and Pattern needs to be made consistent in Drop and With (Pattern group ref replacement occurs first, then Copy).