Skip to content

Instantly share code, notes, and snippets.

@steinelu
Created October 10, 2020 21:32
Show Gist options
  • Save steinelu/73335bcf08b72a868d9023ca402949cc to your computer and use it in GitHub Desktop.
Save steinelu/73335bcf08b72a868d9023ca402949cc to your computer and use it in GitHub Desktop.
How to use matchgroups in powershell
"Hallo Welt!" | Select-String ".* (.*)" | ForEach-Object {$_.Matches.Groups[1]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment