0
New-Object System.Net.WebProxy($Env:http_proxy, $true, @('localhost', '*.domain.com')
失敗,出現錯誤:
New-Object : Exception calling ".ctor" with "3" argument(s): "parsing "*.domain.com" - Quantifier {x,y} following nothing."
At line:1 char:6
+ $p = New-Object System.Net.WebProxy($Env:http_proxy, $true, @('*.domain.com', 'l ...
的Quantifier {x,y} following nothing
是正則表達式錯誤,很奇怪。我試圖使用正則表達式轉義字符,但沒有。
任何解決方案?
感謝:
如果你把它改爲然而
.*.domain.com
它的工作原理。沒有注意到這個正則表達式的信息。 – majkinetor 2015-02-10 16:38:03