View Single Post
Old 02-05-2014, 12:37 PM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by cybmole View Post
if you compromise a little, then
1 with a single pass you can change everything to lower case then
2 with a 2nd pass you can easily capitalise the 1st letter of the 1st word

so you've gone from CHAPTER ONE to Chapter one
In that case, I'd rather use the following expressions:

Find:([[:upper:]])([[:upper:]]+\s*)
Replace:\1\L\2\E

This will find an uppercase letter followed by one or more uppercase letters and zero or more white-space character anywhere in the text and can be used to convert several uppercase words in a row.
Doitsu is offline   Reply With Quote