I was looking for a way to use a GREP find/change to add a space between a lowercase and uppercase character (for example, LittleBlueBirds needs to be Little Blue Birds). I tried this code to do the find, which worked:
However, with my limited GREP knowledge, I didn't't know what code to put into the "change" field...and then figured out the solution:
I changed my search to:
And in the change field, entered:
(found 1, space character, found 2)
I'll leave this up here for anyone who needs the information.
Thanks for posting this. I had a similar problem to solve: I was looking for a string of uppercase characters followed immediately by a number (eg ES18) and I wanted to insert a carriage return between the last letter and first number. I modified the search to look for:
Then, in the change field entered: