作者:Xx--尐尐尐尐情绪 | 来源:互联网 | 2023-05-19 16:54
IwanttoautomateascriptinExcelVBAandIamstuck.我想在ExcelVBA中自动化脚本,我被卡住了。Ihaveastring
I want to automate a script in Excel VBA and I am stuck.
我想在Excel VBA中自动化脚本,我被卡住了。
I have a string = "The patient population is x. From this, a lot of patients are males. A particular male patint has 3 deadly diseases." (the strings will be longer)
我有一个字符串=“患者人数是x。从这个,很多患者都是男性。特别是男性患有3种致命疾病。” (字符串会更长)
Now what i want to do is search how many times the word "patient" appears in this string even if the words have spell problems and how are they written.
现在我要做的是搜索“患者”这个词出现在这个字符串中的次数,即使这些单词有拼写问题以及它们是如何写的。
My ideea was to let`s say match with a confidence of 80% the word "patient" with all the words in the string and the result i am aiming for is .. there are 3 matches and the words that are in the string :"patient","patients","patint ". Is there a way to do this?
我的想法是让我们说80%的信心匹配“患者”这个词与字符串中的所有单词和我的目标结果是...有3个匹配和字符串中的单词: “病人”,“病人”,“patint”。有没有办法做到这一点?
4 个解决方案