为什么以下评估为True
?
Dim result = "b" Like "*a*b"
谢谢。
编辑:
为了概括这一点,以下返回True
:
"String1" Like "*AnyText1*AnyText2*AnyText???******????*String1"
VBA 工作正常,返回False
.
PowerShell 工作正常,返回False
:
PS C:\Users\XXX> "b" -Like "*a*b"
False
EDIT2:
错误报告的链接:
https ://connect.microsoft.com/VisualStudio/feedback/details/748415/a-bug-in-net-like-operator