You can use [Regex]::Matches($s, "(?<=uid=)[^,]+").Value. To save in an object variable: $matches = [Regex]::Matches($s, "(?<=uid=)[^,]+").
確定! 回上一頁