Split PascalCase string except for acronyms
问题 I have a list of words that need to be made human readable, such as FirstName to First Name, LastName to Last Name, and in some cases, acronyms like ARBs to remain as is. The latter was recently introduced and has caused a display issue since our regular expression returns AR Bs . Here's what we have, which I know is insufficient for acronyms: ([A-Z][a-z]+) I've found other expressions on SO and on other sites that are able to work with acronyms, however they work on strings where the acronym