📌  相关文章
📜  powershell replace regex - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:51.500000             🧑  作者: Mango

代码示例1
# You can supply regular expressions to the 
# first parameter of the replace operator.

$str = "Hello world!"
$str -replace "world|earth|mars", "unspecified planetary body"

# Output: Hello unspecified planetary body!