PowerShell中删除空格、点号、减号和换行方法代码实例 2014年11月30日 作者:junjie $text = ' ... Hello ...--- ' $text.Trim(" .-`t`n`r") 结果只显示:Hello