【发布时间】:2014-05-20 07:11:06
【问题描述】:
我陷入了一个问题。
我想使用 SQL Server 或任何第三方工具从两个字符串中区分单词。
例如:
First String ==> "This is for test."
Second String ==> "This is a for test."
Output ==> "a" from second string
或:
First String ==> "abc This is for test."
Second String ==> "This is a for test. This is for test."
Output ==> "abc" in first string and "a" from second string
【问题讨论】:
-
尝试使用
String.Replace构建一个方法。 stackoverflow.com/questions/7517571/… -
当第一个字符串比第二个字符串长时这不起作用。
-
你可以试试我的 .net nuget 库,DiffLib,它应该能给你你想要的。
标签: asp.net sql-server c#-4.0