我有一个包含单词的字符串,需要像下面这样匹配,它是恒定的,而另一个可更改的字符串可能包含来自该字符串 's' 的单词。
string s = "run fun play game do work click type";
string g = "he will be running. He is playing a game by clicking the mouse";
我想要能够匹配这些单词并使它们在 Windows 表单应用程序文本框中加粗。例如,run 和 Running 匹配,因此 running 将被加粗,以此类推。:-/ 有什么想法吗?