我有适用于 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 位系统上返回 True,而在 Windows 2008 64 位系统上返回错误:
MsgBox(RegexObj.IsMatch(thisLine, ",(?!(?<=(?:^|,)\s*""(?:[^""]|""|\\"")*,)(?:[^""]|""|\\"")*""\s*(?:,|$))"))
Dim m As Match = RegexObj.Match(thisLine)
Return RegexObj.Split(thisLine)
20
这应该返回带有元素的数组。同样,在 XP 上运行良好,为什么不能在 Windows 2008 上运行?