我有正则表达式适用于Windows XP(.NET 1.1),但不适用于Windows 2008 64(.NET 2.0)位平台。
thisLine=""fname","lname","empid","password","User","Teller","login","Active","title","Jan 11 2012 12:00AM","MA","Retail","East","Market St","email@email.com","denied","approved","denied","denied","manager@email.com""
你能告诉我为什么Windows XP 32位系统上的代码在Windows XP 32位上返回True而在Windows 2008 64位系统上返回false:
MsgBox(RegexObj.IsMatch(thisLine, ",(?!(?<=(?:^|,)\s*""(?:[^""]|""|\\"")*,)(?:[^""]|""|\\"")*""\s*(?:,|$))"))
Dim m As Match = RegexObj.Match(thisLine)
Return RegexObj.Split(thisLine)
这应该返回带有20
元素的数组。再次,在XP上运行正常,为什么不在Windows 2008上运行?