View Single Post
Old 09-22-2014, 06:23 PM   #6
Chris_Snow
Zealot
Chris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipseChris_Snow can illuminate an eclipse
 
Posts: 148
Karma: 8170
Join Date: Jul 2013
Device: kobo glo
@Tex2002ans,

That's almost identical to the one I used to use, but I wanted something that picked up more.

Does anyone know if the above regex can be changed to pick up single words as well?

Current Find Feild
Code:
>(CHAPTER )(\w)(.+?\b)((-)(\w)(.+?\b))?<
Current Replace Field
Code:
>Chapter \u\2\L\3\E\5\u\6\L\7\E<
I use it to change Page/Chapter Headings from Uppercase to Title case. The above picks up all the chapter ones but doesn't select things like "PROLOGUE" and "ACKNOWLEDGMENTS." I know I need to change the "(CHAPTER )" part of it, but don't know exactly what should go there - or in the find field. Thx
Chris_Snow is offline   Reply With Quote