我有两个字符串:
string1 = "theater is small"; string2 = "The small thing in the world";
我需要检查字符串中是否存在字符串"the". 我可以使用contains函数,但它可以做一个完整的单词匹配吗?即它不应该与string1的"剧院"相匹配!
c#
c# ×1