php - Regex to match words and acronyms in camel case string -
i need regular expression capture word parts of string camel case , might have acronym in it. in other words, want split camel case string words , acronyms.
for example:
someabcwords
... has 3 capture groups
some abc words
so far i've found regex:
((?:^|[a-z])[a-z]+)
but won't handle acronyms , match 'some' , 'words'.
Comments
Post a Comment