Solved

Text-Diff in RUBY

Posted on 2008-06-13
3
1,223 Views
Last Modified: 2011-10-03
Dear experts,

In Perl, they  have Text::Diff library to compare the difference of two files
http://cpan.uwinnipeg.ca/htdocs/Text-Diff/Text/Diff.html 

Is there any equivalent in Ruby?

Thank you & best regards.
0
Comment
Question by:isuhendro
3 Comments
 
LVL 27

Expert Comment

by:ddrudik
ID: 21824156
I would suggest this, but it's all I could find for Ruby:
http://raa.ruby-lang.org/project/compare/
0
 

Author Comment

by:isuhendro
ID: 21880759
Hi ddrudik,
thank you fyi, it seems what I try to find.. but I could not get the code itself.
0
 
LVL 1

Accepted Solution

by:
gethemant earned 500 total points
ID: 21932437
there is ruby-diff, a straight port of Perl Text::Diff. Checkout here:

http://www.freebsd.org/cgi/pds.cgi?ports/textproc/ruby-diff
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin Regular expression is a language that we use to edit a string or retrieve sub-strings that meets specific rules from a text. A regular expression can be applied to a set of string variables. There are many RegEx engines for u…
Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question