标签:
$text = ‘ ... Hello ...--- ‘ $text.Trim(" .-`t`n`r")
结果只显示:Hello
From:http://powershell.com/cs/blogs/tips/archive/2015/04/30/removing-whitespace-and-line-breaks.aspx
删除空格、点号、减号和换行
原文地址:http://www.cnblogs.com/dreamer-fish/p/4479592.html