I'm sure that there's a more elegant solution, but the following simple regex should work:
Find: ([[:upper:]]{1,})([[:lower:]]+)
Replace: \1<small>\U\2\E</small>
Since this simple regex will find title case strings everywhere, you can't use it with Replace All, though.
To replace two consecutive title case words use the following regex:
Find: ([[:upper:]]{1,})([[:lower:]]+) ([[:upper:]]{1,})([[:lower:]]+)
Replace: \1<small>\U\2\E</small> \3<small>\U\4\E</small>
Last edited by Doitsu; 07-28-2013 at 01:50 PM.
|