Board logo

标题: [技术讨论] [已解决]powershell -replace 单行模式 [打印本页]

作者: newswan    时间: 2021-6-6 20:17     标题: [已解决]powershell -replace 单行模式

本帖最后由 newswan 于 2021-6-7 00:16 编辑
  1. $str -replace "(?s)abcd.*xyz",""
复制代码
使用 (?s)




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2