$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
$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