Add Spaces Before Capitals


#1

How can I use an action to insert spaces before each capital letter (except for the first word) if one is not already there?

Example:
AllisonCrow - RunningForHome
to:
Allison Crow - Running For Home

Thanks


#2

Well, I learnt Regex and solved it myself.

For those interested, I made a "Format Value" Action:

Field = TITLE
Format String = $regexp(%title%,(?<=\l)(?=\u), )

It looks back one character for a lower case letter, "(?<=\l)"
and then looks forward a character for an upper case letter, "(?=\u)"
putting a space in if both are true. ", )"