我需要一个正则表达式,每3个单词的首字母大写字母 .
例如,我想用这个: ConcreteTinyAabyssiniangroundhornbill
C is the first letter for the first word T is the first letter of the second word A is the first letter of the third word
就像我说的那样,我希望匹配每3个大写字母的第一个字母,但如果我让C,T或A再次变为小写,我也希望它停止匹配 . 如果所有3个单词的首字母再次变为大写,我希望它只匹配 .
我有这个 ([A-Z][a-z0-9]+)([A-Z][a-z0-9]+)([A-Z][a-z0-9]+)
但它不够准确 .