📅  最后修改于: 2022-03-11 14:50:51.500000             🧑  作者: Mango
# 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!