locked
Compare two text contents in C# RRS feed

  • Question

  • I have a trouble !

    I have a two string, something like this:

     

    string requestOne = "Hello, I'm from Canada and pleased to see you";

    string requestTwo = "Hello, I'm from Viet Nam and my name is Bac";

     

    and now I want to compare two strings and value returned is a percent of the same !

     

    string requestOne = "Hello, I'm from Canada and pleased to see you";

    string requestTwo = "Hello, I'm from Viet Nam and my name is Bac";

     

    the italic text is the same ! But the bold text is difference ! We can't use String.Compare here !

     

    And value returned is about 35% !

     

    How to do this ? and what is a criteria ?

     

     

    Monday, July 2, 2007 8:45 AM

Answers

All replies