I am wondering what is the easiest way to compare substrings to know how many mismatches are there. For example:
String1 String2 #Mismatches
ABCGE ABCGE 0
ABCGE FGCGB 3
ABCGE JHAGT 4
I was thinking to compare arrays. Or maybe create a hash array and then use index() ?
Thanks in advance :)In reply to Comparing string characters by dnamonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |