# Both strings and candidate are always # the same length $str = '[TCG]TTCG[AT]'; $candidate1 = ' T TTCG G'; # I manually aligned this # The number of mismatch of those string would be: 1 # Namely the only last position gives a mismatch, # The first position it is considered a match.
In reply to Re^4: Finding Neighbours of a String
by monkfan
in thread Finding Neighbours of a String
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |