Windows XP 32与Windows 2008 64位的RegEx

时间:2013-10-01 15:49:12

标签: regex windows vb.net

我有正则表达式适用于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上运行?

0 个答案:

没有答案