Skip to content

Instantly share code, notes, and snippets.

@vexx32
Last active August 23, 2019 13:16
Show Gist options
  • Save vexx32/bb2d4426942ae442cf1b4dbf168b7c20 to your computer and use it in GitHub Desktop.
Save vexx32/bb2d4426942ae442cf1b4dbf168b7c20 to your computer and use it in GitHub Desktop.
Get-Content -Path $File | ForEach-Object {
if ($_ -match '(?<MethodName>\w+)\((<Arguments>.*?)\) *(?={)') {
$matches['Method'] = $matches[0]
$matches.Remove(0)
[PSCustomObject]$matches
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment