Hi,
I would like to replace strings like 'HDMWhoSomeThing'
to 'HDM Who Some Thing'
with regex.
So I would like to extract words which starts with an upper-case letter or consist of upper-case letters only. Notice that in the string 'HDMWho'
the last upper-case letter is in the fact the first letter of the word Who
- and should not be included in the word HDM
.
What is the correct regex to achieve this goal? I have tried many regex' similar to [A-Z][a-z]+
but without success. The [A-Z][a-z]+
gives me 'Who Some Thing'
- without 'HDM'
of course.
Any ideas? Thanks, Rukki