Welcome

首页 / 编程脚本 / PowerShell中删除空格、点号、减号和换行方法代码实例

复制代码 代码如下:
$text = "  
 ... Hello    
 ...---
 "
$text.Trim(" .-`t`n`r")

结果只显示:Hello