We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> I think your regex has multiple issues. I don't have time at the moment to really dig into it, but wanted to offer an alternative approach.
switch -regex ($vssadmin){ "^\w.*'(?<Name>.*)'$" {$ht = @{Name = $matches.name}} "^\s+(?<Name>\w[\w\s]*): (?<Value>.*)$" { $ht.Add($matches.Name,$matches.Value) if($matches.Name -like '*err*'){ [PSCustomObject]$ht } } }
I miss some output with this code
Originally posted by @B-Art in PowerShell/PowerShell#19754 (comment)
The text was updated successfully, but these errors were encountered:
I don't understand why this was opened here.
Sorry, something went wrong.
No branches or pull requests
I miss some output with this code
Originally posted by @B-Art in PowerShell/PowerShell#19754 (comment)
The text was updated successfully, but these errors were encountered: