更新时间:2023-02-03 09:30:13
这是一个正则表达式,所以需要用反斜杠转义,而不是 PowerShell 的反引号,例如:
It's a regular expression so needs to be escaped with backslash, not PowerShell's backtick, e.g.:
> "Debug|x86" -match "Debug\|x128"
False
因为它是一个正则表达式,如果管道字符没有被转义,它的计算结果是Debug or x128".
As it is a regular expression, If the pipe character is not escaped, it evaluates to "Debug or x128".