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
  • 236,029
  • 38
  • 403
  • 530
r.r
  • 6,743
  • 28
  • 85
  • 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,118
  • 10
  • 90
  • 143
0

Use Diff algorithm for string comparision.

shuvo sarker
  • 791
  • 10
  • 20