是否有一个正则表达式可以判断单词的前三个字母,并仅将其拆分为大写字母.然后,它根据大写字母和小写字母拆分单词的其余部分.
For example,
"FORfirstUpload"
Desired output:
['F','O','R','first','Upload']
I tried using the regex pattern:
re.findall([A-Z][a-z]*|[A-Z]|[a-z])
But got this output:
['F','O','Rfirst','Upload']