问题描述
是否有任何RegularExpression在1000个单词的描述中搜索特定单词或单词集,并返回包含该特定单词集的150个字符。
例如:
如果我有一组单词,如:"Disorders or Diseases必须被治愈"
我有100个单词的描述,其中单词组随机分布。
有什么方法可以提取150个单词的摘要,使其包含全部或任何"必须治愈的疾病或疾病"。字符串
任何帮助表示赞赏
提前感谢
Hi,
Is there any RegularExpression which searches for a particular word or set of words in a description of 1000 words and gets back 150 characters which contains that particular set of words.
for instance:
If i have a group of words like : "Disorders or Diseases have to be Cured"
and i have a description of 100o words where the group of words are spread randomly.
Is there any way that i can pull out my Abstract of 150 words so that it contains the all or any of the "Disorders or Diseases have to be Cured" string
Any help is appreciated
Thanks in advance
这篇关于寻找某些词语模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!