I was trying to find a way in powershell to remove more than one white space.
But what i found is how to do it in php. \"Removing more than one white-space\"
'[ Hello, World! ]' -replace '^\[\s+','[' -replace '\s+]$',']' -replace '\s+',' '
Bacon has the explanation powershell is funny. I had to escape '[' with '\' even though I know powershells escape character is `.
'['
'\'