|
-
Aug 6th, 2003, 06:49 AM
#1
Thread Starter
Hyperactive Member
Compare two strings and get the differance
Hi,
I have 2 strings
string1 = "abcdefgh"
string2 = "abcdefghijklm"
I want to get the difference of the two strings .....
like getDiff(str2,str1) = "ijklm"
and where the diffrance is
like
getDiffStart(str2,str1) = 8 (where the last commom charcater is)
...........
Please help
It is the mark of an instructed mind to rest satisfied with the degree of precision which the nature of the subject admits, and not to seek exactness when only an approximation of the truth is possible.
-Aristotle As quoted in Rapid Development, chapter 8, page 167.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|