View Single Post
Old 05-01-2016, 04:47 PM   #8
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
@kovidgoyal

Thanks, I use that all the time to fix things like

Code:
<h1>CHAPTER 1 - THE BEGINNING</h1>
I was really looking to see if there is any automatic way to change paragraph leading upper case words to lower case

Code:
<body>

(before)

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

(after)

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

</body>

I did try using the Capitialize text function with a Find of <p[^>]*>.+?</p>

That works good for the ALLCAPS text I was using for a test, but it also gets applied to every paragraph.

I was thinking there might be some clever (i.e. beyond me) RegEx way to take the first whole word after a <p> and make it TitleCase, and then the (say) next 4 words and make them lowercase. Then stepping through with Find or Replace&Find would just be a lot easier
phossler is offline   Reply With Quote