Is there a way to get the difference between two strings? Not the size difference, but what the characters are that are different.
For example:
If you had
str1 = "See spot run"
str2 = "See the spot run"
Is there some function or something that will return "the" when comparing the two strings? It would be even better if it could return what the characters are that are different as well as tell you the position where they were inserted.
For example:
If you had
str1 = "See spot run"
str2 = "See the spot run"
Is there some function or something that will return "the" when comparing the two strings? It would be even better if it could return what the characters are that are different as well as tell you the position where they were inserted.