在大写/大写字符上拆分字符串

CSc*_*ulz 4 regex

我有以下输入:

MaintanceGie?\195?\159mannFlock
SupportGie?\195?\159mannFlock
ABCSaskDgfskSblabla
Run Code Online (Sandbox Code Playgroud)

并搜索一个正则表达式,它给了我以下结果:

Maintance Gie?\195?\159mann Flock
Support Gie?\195?\159mann Flock
ABC Sask Dgfsk Sblabla
Run Code Online (Sandbox Code Playgroud)

对于第一个两个字符串,我可以使用以下 regex ([A-Z]+)([^A-Z]*)
我必须改变什么才能使这个正则表达式工作?

感谢您的任何建议。

cod*_*ict 5

您可以使用正则表达式:

(?=[A-Z][^A-Z])
Run Code Online (Sandbox Code Playgroud)

链接