[regex] :: matchesを使用して文字列を解析しようとしています。私は言葉を分けることができますが、私は開け閉めの父と一緒に問題を抱えています。誰かが私を助けて、私が間違っていることを説明できますか?進んでいただきありがとうございます。"()"の間の文字列内の単語を検索
$results = "All domain controllers have migrated successfully to the Global state ('Start')."
[regex]::Matches($results , "\w+['a-z']") | foreach-object {$_.value}
'[regex] :: Matches($ results、" \ w + [( '')] ")| {$ _。値} ' – Fidelis
'[正規表現] ::一致($結果、' \ W + \ w + [( '')\ W + ')| foreach-object {$ _。value} ' – Fidelis
' $ Results |についてはどうですか? ?{$ _ -match "\(([^)] *)"} | %{$ Matches [1]} '?それは '' Start''を出力します – TheMadTechnician