In my application, I have two strings and I need to display missing words that count, Inserting words that count and modified words that count between them. For example:
string variable1="When you are writing server code you can never be sure what the IP address you see is refereeing to.In fact some users like it this way."; PowerShell
string variable2="are wrting server code yu cannn never be sure Demo what
the address you is to.In fact Demo1 some users like it this way";
The result should be:
Missing Words: see ,IP
Missing Words count: 2
Inserted: Demo, Demo1
Inserted Words count: 2
Modified words : wrting,yu ,cannn ,refering
Modified words count :4
//Missing Word Count
var result = variable1.Split(new char[] { ' ' }).Except(variable2.Split(new char[] { ' ' })).ToArray();
count = result.Length;
Label2.Text += "Missing Word Count: " + count.ToString() + "
";
for (int i = 0; i
count = 0;
count = result1.Length;
for (int i = 0; i lblwords.text=tempArr1[i] + ", "+ tempArr2[i];
counter++;
}
}
My requirement is need to display missing words,inserted words and modified words
between two large strings(documents). i am getting missing and inserted words
but i didn't get modified words.i am trying this but i am not getting
can anyone please help me it's very urgent requirement.
Thank you
Vinay SinghRank #604 · 4K reputationPosted Aug 25, 2016, 2:13 AM EDT