ivor 当前离线
上校
$filename = "C:\Users\mac\Desktop\a.txt" ([regex]$pattern='(?=.*BENDE)(?=.*LASTF).*\r?\n?').replace([IO.File]::ReadAllText($filename),'',1) | set-content $filename复制代码
评分人数
TOP
Replace(String, String, Int32, Int32) In a specified input substring, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.复制代码