View Single Post
Old 05-01-2016, 10:03 AM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
RegEx or RE Function to apply [Change Case] Capitialize?

Is there a RegEx or RegEx Function that will apply [Change Case] Capitialize to the upper case words at the beginning of a paragraph, which is usually in the first paragraph of each chapter?

It's purely personal opinion but in my Kindle I find the 'paper book' typographic style disconcerting and if there were a easy way to change it'd save a lot of manual work.

I'd like to change the first <p> to the second <p>. It's not 100% since there could be proper names or acronyms in the UPPER CASE TEXT, but I can clean them up manually


Code:
<body>

<p>ALLCAPS ALLCAPS ALLCAPS lower case  lower case  lower case  lower case  lower case </p>

<p>Allcaps allcaps allcaps lower case  lower case  lower case  lower case  lower case </p>

</body>

Thanks

Last edited by phossler; 05-01-2016 at 11:15 AM. Reason: spelling
phossler is offline   Reply With Quote