2

I have two strings.

stringV1 = "123456";
stringV2 = "102300456";

First I need to compare them.

If stringV2 has some changes, this new text should be highlighted like this:

"1'0'23'00'456"
Justin Niessner
  • 242,243
  • 40
  • 408
  • 536
r.r
  • 7,023
  • 28
  • 87
  • 129

2 Answers2

3

this has been discussed here already sometimes...

How to highlight the differences between subsequent lines in a file?

How to display word differences using c#?

...

Community
  • 1
  • 1
Davide Piras
  • 43,984
  • 10
  • 98
  • 147
0

Use Diff algorithm for string comparision.

shuvo sarker
  • 881
  • 11
  • 20