小编sar*_*04x的帖子

escaping single quote sign in PowerShell

I have a replace statement in my code whereby Band's is being replaced by Cig's. However when I put single quote it took the first sentence... Example 'Band'

I tried to use double quote but it does not work. Do you know how to escape the single quote sign?

-replace 'Band's', 'Cig's'
Run Code Online (Sandbox Code Playgroud)

powershell

3
推荐指数
1
解决办法
2460
查看次数

标签 统计

powershell ×1