seaswalker / posts

0 stars 0 forks source link

Powershell从文件中正则提取 #62

Open seaswalker opened 1 year ago

seaswalker commented 1 year ago
Select-String -Path .\classes.txt -Pattern 'Class\(id=([0-9]+)' -AllMatches | % {$_.Matches} | % {$_.Groups[1]} | % {$_.Value}