Is there any way to calculate % match between 2 strings?
i have a situation where it is required to calculate matches between 2 strings if there is 85%
match then i will combine 2 tables, i have written the code for combining 2 tables
my sample strings are :
var str1 = 'i love javascript';
var str2 = 'i love javascripttt';
var matchPer = match(str1,str2); // result might be 80% , 85%, 90% ,95% etc