2020/02/17 #置換(replace)メソッド
皆様おはようございます、
#猫でもできるPowerShell(備忘録)
#置換(replace)メソッド
PS> 'heLLo worLd'.replace('L','T')
heTTo worTd
PS> 'heLLo worLd'.replace('o','0')
heLL0 w0rLd
よく使われる機能ですが
旧いPowershellでは使えなかった記憶があります
Windows10なら標準機能と考えて良いでしょう・・
ではまた;
#猫でもできるPowerShell(備忘録)
#置換(replace)メソッド
PS> 'heLLo worLd'.replace('L','T')
heTTo worTd
PS> 'heLLo worLd'.replace('o','0')
heLL0 w0rLd
よく使われる機能ですが
旧いPowershellでは使えなかった記憶があります
Windows10なら標準機能と考えて良いでしょう・・
ではまた;