0
この作品
でDOTを置き換えるこの文字列は、その中にコンマをたくさん持っています。PowerShellは、SPACE
しかし、これは動作しません:
$string = "This string. has a. lot. of dots in. it."
$string -replace '.',''
出力:空白。
なぜですか?
それは正規表現としてそれを解析します。afaik '.'は任意の文字の正規表現です – 4c74356b41
[Powershell置き換えピリオド]の可能な複製(http://stackoverflow.com/questions/14541980/powershell-replacing-periods) – BACON