寻找方法来告诉两个字符串之间的区别

寻找方法来告诉两个字符串之间的区别

本文介绍了寻找方法来告诉两个字符串之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想,如果有一个字符串的任何自由的实现比较,即讲述了两个多行字符串之间的区别。我正在寻找类似的Microsoft SourceSafe比较屏幕。

I was wondering if there are any free implementations of a string compare, that tells the difference between two multiline strings. I'm looking for something like the compare screen of Microsoft SourceSafe.

我想实现的是,比较两个HTML网站,并得到变化的概述。

What I want to achieve is, to compare two html websites and get an overview of the changes.

(用例将是比较静态的HTML页面,看看是否有任何变化,比如公告或新的下载。我的大学的主机为每门课程我访问不同的页面。)

(The use case will be in comparing static html pages to find out if there are any changes, like announcements or new downloads. My university hosts separate pages for each course I visit.)

推荐答案

他在寻找一个比较库,而不是一个diff工具。

He's looking for a diff library, not a diff tool.

在谷歌快速搜索变成了几个:

A quick search on google turns up a few:


  • 谷歌的的


  • (伟大的链接,我知道)

  • Google's Diff Match Patch
  • Diff Algorithm
  • Buggy old diff which isn't supported (great link I know)

这篇关于寻找方法来告诉两个字符串之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 05:56