有个公式,可以大致算,但是有个问题,这个函数需要长得字段在前面
greparray(split("帆软报表1",""),inarray(item,split("帆软报表",""))=0)---这个是取两个字符串差集
这样可以匹配
1-len(greparray(split("帆软报表1",""),inarray(item,split("帆软报表",""))=0))/(len(split("帆软报表",""))+len(split("帆软报表1","")))
==================
想到一个,可以先判断两个字符长度,再做匹配
if(len(split(字符串1,""))>len(split(字符串1,"")),1-len(greparray(split(字符串1,""),inarray(item,split(字符串2,""))=0))/(len(split(字符串1,""))+len(split(字符串2,""))),1-len(greparray(split(字符串2,""),inarray(item,split(字符串1,""))=0))/(len(split(字符串1,""))+len(split(字符串2,""))))