用纯P 还是没有 PS 方便- ((Get-Content 0.txt)|%{
- $_.trim() -replace "^<img src=.*_536766542.jpg`" />$",'<img align="absmiddle" style="max-width:750px" src="https://img.alicdn.com/imgextra/i4/72692031/O1CN01C61X2z1QsEsx4BY8U_!!726031.jpg" />'
- })|Set-Content ".\ok.txt"
- pause
复制代码
|