in reply to Re^6: Longest common substring with N mismatches
in thread Longest common substring with N mismatches

Looks like the same solution fits, xor both strings at different positions and count the longest runs of zeros tolerating n non zeros in between, probably with a composed regex.

See ^ in perlop#Bitwise-Or-and-Exclusive-Or

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re^7: Longest common substring with N mismatches