解析:
默认情况下,正则表达式是区分大小写的。因此,在加任何修饰符的情况下,cat是不能匹配字符串There are many Cats and Dogs中的Cat的。因为字符 C是大写。
cat
There are many Cats and Dogs
Cat